string_list_new_special - free upon failure
This commit is contained in:
parent
db5d8d248b
commit
91523a21c5
|
@ -234,6 +234,8 @@ struct string_list *string_list_new_special(enum string_list_type type,
|
||||||
return s;
|
return s;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
string_list_free(s);
|
||||||
|
s = NULL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue