From d978701783f04c596497d0c1c0008e830a4e0e32 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 19 Mar 2011 00:34:01 +0100 Subject: [PATCH] Fixed a memory leak in scanning --- scan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scan.c b/scan.c index e87a0c03..74bb8634 100644 --- a/scan.c +++ b/scan.c @@ -277,5 +277,7 @@ void state_scan(struct snapraid_state* state) printf("\tremoved %d\n", total.count_remove); printf("\tadded %d\n", total.count_insert); } + + free(scan); }