[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 02/29: examples/postinmemory.c: Call curl_global_cleanup always
From: |
gnunet |
Subject: |
[gnurl] 02/29: examples/postinmemory.c: Call curl_global_cleanup always |
Date: |
Fri, 10 Jan 2020 23:05:40 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 68da0b8b8694328b214e687a6cff5cbb744dcfd5
Author: Jay Satiro <address@hidden>
AuthorDate: Tue Dec 24 01:06:47 2019 -0500
examples/postinmemory.c: Call curl_global_cleanup always
Prior to this change curl_global_cleanup was not called if
curl_easy_init failed.
Reported-by: address@hidden
Fixes https://github.com/curl/curl/issues/4751
---
docs/examples/postinmemory.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/docs/examples/postinmemory.c b/docs/examples/postinmemory.c
index 376f33450..e2718c5ba 100644
--- a/docs/examples/postinmemory.c
+++ b/docs/examples/postinmemory.c
@@ -104,10 +104,9 @@ int main(void)
/* always cleanup */
curl_easy_cleanup(curl);
-
- /* we're done with libcurl, so clean it up */
- curl_global_cleanup();
}
+
free(chunk.memory);
+ curl_global_cleanup();
return 0;
}
--
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 <=
- [gnurl] 07/29: tool_operate: fix mem leak when failed config parse, gnunet, 2020/01/10
- [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