string_list_new_special - free upon failure

This commit is contained in:
twinaphex 2015-10-26 19:42:27 +01:00
parent db5d8d248b
commit 91523a21c5

View File

@ -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;
}