From 91523a21c5d4c1244a25f6ec9bd299065ed588cc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 26 Oct 2015 19:42:27 +0100 Subject: [PATCH] string_list_new_special - free upon failure --- string_list_special.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/string_list_special.c b/string_list_special.c index 30aa27ff64..15ca065a28 100644 --- a/string_list_special.c +++ b/string_list_special.c @@ -234,6 +234,8 @@ struct string_list *string_list_new_special(enum string_list_type type, return s; error: + string_list_free(s); + s = NULL; return NULL; }