tool: Fixed a memory leak on OOM introduced in 19cb0c4a

This commit is contained in:
Dan Fandrich 2015-11-08 16:50:25 +01:00
parent 23b8fc15c8
commit 729b92afbe

View File

@ -45,7 +45,7 @@ struct slist_wc *slist_wc_append(struct slist_wc *list,
list = malloc(sizeof(struct slist_wc));
if(!list) {
free(new_item);
curl_slist_free_all(new_item);
return NULL;
}