From ffdfc825234987b9f974d7a8a152babb10cb8663 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 22 Aug 2011 08:50:43 -0500 Subject: pacsort: ensure list is freed if size is 0 Found using: `valgrind ./src/util/.libs/lt-pacsort /dev/null` Signed-off-by: Dan McGee --- src/util/pacsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/pacsort.c b/src/util/pacsort.c index 082ba728..8236c959 100644 --- a/src/util/pacsort.c +++ b/src/util/pacsort.c @@ -383,9 +383,9 @@ int main(int argc, char *argv[]) for(i = 0; i < list->count; i++) { printf("%s%c", list->list[i], linedelim); } - list_free(list); } + list_free(list); buffer_free(buffer); return 0; -- cgit v1.2.3-70-g09d2