gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 11/220: tool_operate: fix implicit call to easysrc_


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 11/220: tool_operate: fix implicit call to easysrc_cleanup
Date: Thu, 12 Sep 2019 17:26:11 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit cdf7d13bcb144756af8d3ae2dc92d638a65e0e0f
Author: Jay Satiro <address@hidden>
AuthorDate: Mon Jul 22 15:43:41 2019 -0400

    tool_operate: fix implicit call to easysrc_cleanup
    
    easysrc_cleanup is only defined when CURL_DISABLE_LIBCURL_OPTION is not
    defined, and prior to this change would be called regardless.
    
    Bug: https://github.com/curl/curl/pull/3804#issuecomment-513922637
    Reported-by: Marcel Raad
    
    Closes https://github.com/curl/curl/pull/4142
---
 src/tool_operate.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/tool_operate.c b/src/tool_operate.c
index 6b2d89ffb..68cd11c56 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -2286,8 +2286,12 @@ CURLcode operate(struct GlobalConfig *config, int argc, 
argv_item_t argv[])
         struct OperationConfig *operation = config->first;
         CURLSH *share = curl_share_init();
         if(!share) {
-          /* Cleanup the libcurl source output */
-          easysrc_cleanup();
+#ifndef CURL_DISABLE_LIBCURL_OPTION
+          if(config->libcurl) {
+            /* Cleanup the libcurl source output */
+            easysrc_cleanup();
+          }
+#endif
           return CURLE_OUT_OF_MEMORY;
         }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]