gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 71/208: tool_getparam: fix memory leak on test 1147


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 71/208: tool_getparam: fix memory leak on test 1147 OOM (torture tests)
Date: Wed, 09 Aug 2017 17:34:28 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 922f800603b76d3762fb335638de01524b562b60
Author: Jay Satiro <address@hidden>
AuthorDate: Mon Jun 26 01:03:12 2017 -0400

    tool_getparam: fix memory leak on test 1147 OOM (torture tests)
    
    Bug: https://github.com/curl/curl/pull/1486#issuecomment-310926872
    Reported-by: Dan Fandrich
---
 src/tool_getparam.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 6cb394139..f64208a2b 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1626,13 +1626,15 @@ ParameterError getparameter(const char *flag, /* f or 
-long-flag */
               else
                 err = add2list(&config->headers, h);
               if(err)
-                return err;
+                break;
               h = strtok(NULL, "\r\n");
             }
             free(string);
           }
           if(!use_stdin)
             fclose(file);
+          if(err)
+            return err;
         }
       }
       else {

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



reply via email to

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