]> granicus.if.org Git - curl/commit
curl: fix memory leak reading --writeout from file
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Nov 2018 10:59:04 +0000 (11:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Nov 2018 21:48:09 +0000 (22:48 +0100)
commit650281ed5ba335d16a932ccba53665551197880f
treefa32e63b9fb287b9eec9486325fed01f93eabd90
parent8e2549b86c4022cdad272c265a66c88f06fc3560
curl: fix memory leak reading --writeout from file

If another string had been set first, the writout function for reading
the syntax from file would leak the previously allocated memory.

Reported-by: Brian Carpenter
Fixes #3322
Closes #3330
src/tool_getparam.c