aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-11-08 16:50:25 +0100
committerDan Fandrich <dan@coneharvesters.com>2015-11-08 16:50:25 +0100
commit729b92afbe4a350ee725a5001f041170dd12789b (patch)
tree6e5bc4f661e4408c4d6a52375a1a08034a32aa1d /src
parent23b8fc15c8653133b2ea664b8f894c74d8862a3c (diff)
tool: Fixed a memory leak on OOM introduced in 19cb0c4a
Diffstat (limited to 'src')
-rw-r--r--src/slist_wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slist_wc.c b/src/slist_wc.c
index f4767ad84..d715bb21f 100644
--- a/src/slist_wc.c
+++ b/src/slist_wc.c
@@ -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;
}