From 1730a8a10d8a13d9ad7bf1746adb08ecbe66e504 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 9 Feb 2011 16:20:51 +0100 Subject: Don't free(NULL) --- src/reflist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/reflist.c') diff --git a/src/reflist.c b/src/reflist.c index dc37605b..e73ae2fa 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -112,6 +112,7 @@ static void recursive_free(Reflection *refl) void reflist_free(RefList *list) { + if ( list == NULL ) return; recursive_free(list->head); free(list); } -- cgit v1.2.3