diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reflist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reflist.c b/src/reflist.c index 19d5b1a4..5ab99635 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -177,7 +177,9 @@ static void recursive_free(Reflection *refl) void reflist_free(RefList *list) { if ( list == NULL ) return; - recursive_free(list->head); + if ( list->head != NULL ) { + recursive_free(list->head); + } /* else empty list */ free(list); } |