gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 212/256: smtp: fix memory leak in OOM


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 212/256: smtp: fix memory leak in OOM
Date: Fri, 06 Oct 2017 19:45:03 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 1e548f77847ac51a7054adef24825624fb73b219
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Sep 20 11:33:46 2017 +0200

    smtp: fix memory leak in OOM
    
    Regression since ce0881edee
    
    Coverity CID 1418139 and CID 1418136 found it, but it was also seen in
    torture testing.
---
 lib/smtp.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/smtp.c b/lib/smtp.c
index 67dc04f28..de2dd3356 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -550,8 +550,11 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)
     if(!result)
       result = Curl_mime_rewind(&data->set.mimepost);
 
-    if(result)
+    if(result) {
+      free(from);
+      free(auth);
       return result;
+    }
 
     data->state.infilesize = Curl_mime_size(&data->set.mimepost);
 

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



reply via email to

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