From 2cf2a1f3bce79e33ead868b6ed3575b0bb332ef2 Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Tue, 1 Oct 2013 14:26:16 +0200 Subject: [PATCH 1/1] model-checker : fix memory leak --- src/xbt/mmalloc/mm_diff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xbt/mmalloc/mm_diff.c b/src/xbt/mmalloc/mm_diff.c index 84d7db1d2e..86733e3e26 100644 --- a/src/xbt/mmalloc/mm_diff.c +++ b/src/xbt/mmalloc/mm_diff.c @@ -371,7 +371,9 @@ void reset_heap_information(){ equals_to1[i][j] = NULL; heap_area_free(equals_to2[i][j]); equals_to2[i][j] = NULL; - } + } + free(equals_to1[i]); + free(equals_to2[i]); } free(equals_to1); -- 2.20.1