diff options
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r-- | lib/ssluse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 51bd909a1..d65fd98b9 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1855,6 +1855,7 @@ static CURLcode push_certinfo_len(struct SessionHandle *data, equivalent of curl_slist_append but doesn't strdup() the given data as like in this place the extra malloc/free is totally pointless */ nl = curl_slist_append(ci->certinfo[certnum], output); + free(output); if(!nl) { curl_slist_free_all(ci->certinfo[certnum]); ci->certinfo[certnum] = NULL; @@ -1863,8 +1864,6 @@ static CURLcode push_certinfo_len(struct SessionHandle *data, else ci->certinfo[certnum] = nl; - free(output); - return res; } |