Skip to content
Snippets Groups Projects
Commit 729b92af authored by Dan Fandrich's avatar Dan Fandrich
Browse files

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

parent 23b8fc15
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment