Skip to content
Commit 5cc32855 authored by Daniel Gustafsson's avatar Daniel Gustafsson
Browse files

docs: mention potential leak in curl_slist_append



When a non-empty list is appended to, and used as the returnvalue,
the list pointer can leak in case of an allocation failure in the
curl_slist_append() call. This is correctly handled in curl code
usage but we weren't explicitly pointing it out in the API call
documentation. Fix by extending the RETURNVALUE manpage section
and example code.

Closes #3424
Reported-by: dnivras on github
Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
parent 46c89348
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment