[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 07/29: tool_operate: fix mem leak when failed config parse
From: |
gnunet |
Subject: |
[gnurl] 07/29: tool_operate: fix mem leak when failed config parse |
Date: |
Fri, 10 Jan 2020 23:05:45 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 249f7b37e610477a4c16810c77a8605b464a653e
Author: Jay Satiro <address@hidden>
AuthorDate: Sun Dec 29 14:18:48 2019 -0500
tool_operate: fix mem leak when failed config parse
Found by fuzzing the config file.
Reported-by: Geeknik Labs
Fixes https://github.com/curl/curl/issues/4767
---
src/tool_operate.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/tool_operate.c b/src/tool_operate.c
index d4f170e33..61b130672 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -720,8 +720,10 @@ static CURLcode single_transfer(struct GlobalConfig
*global,
if(SetHTTPrequest(config, HTTPREQ_SIMPLEPOST, &config->httpreq))
result = CURLE_FAILED_INIT;
}
- if(result)
+ if(result) {
+ single_transfer_cleanup(config);
return result;
+ }
}
if(!state->urlnode) {
/* first time caller, setup things */
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] branch master updated (71b588320 -> 697584161), gnunet, 2020/01/10
- [gnurl] 01/29: url2file.c: fix copyright year, gnunet, 2020/01/10
- [gnurl] 04/29: os400: Add missing CURLE error constants, gnunet, 2020/01/10
- [gnurl] 03/29: CURLOPT_HEADERFUNCTION.3: Document that size is always 1, gnunet, 2020/01/10
- [gnurl] 02/29: examples/postinmemory.c: Call curl_global_cleanup always, gnunet, 2020/01/10
- [gnurl] 07/29: tool_operate: fix mem leak when failed config parse,
gnunet <=
- [gnurl] 05/29: lib: fix warnings found when porting to NuttX, gnunet, 2020/01/10
- [gnurl] 06/29: lib: remove erroneous +x file permission on some c files, gnunet, 2020/01/10
- [gnurl] 09/29: bearssl: Improve I/O handling, gnunet, 2020/01/10
- [gnurl] 10/29: tests: Change NTLM tests to require SSL, gnunet, 2020/01/10
- [gnurl] 08/29: travis: Fix error detection, gnunet, 2020/01/10
- [gnurl] 11/29: tool: make a few char pointers point to const char instead, gnunet, 2020/01/10
- [gnurl] 23/29: file: fix copyright year range, gnunet, 2020/01/10
- [gnurl] 12/29: tests: Fix bounce requests with truncated writes, gnunet, 2020/01/10
- [gnurl] 21/29: file: on Windows, refuse paths that start with \\, gnunet, 2020/01/10
- [gnurl] 20/29: CURLOPT_READFUNCTION.3: fix fopen params in example, gnunet, 2020/01/10