gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 151/411: urlapi: use more Curl_safefree


From: gnunet
Subject: [gnurl] 151/411: urlapi: use more Curl_safefree
Date: Wed, 13 Jan 2021 01:19:26 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit c0f0e400e0bc43cbe8c42c6937ed0ac743a8d81a
Author: Emil Engler <me@emilengler.com>
AuthorDate: Wed Sep 16 21:33:27 2020 +0200

    urlapi: use more Curl_safefree
    
    Closes #5968
---
 lib/urlapi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/urlapi.c b/lib/urlapi.c
index acbfb8287..88b7f042f 100644
--- a/lib/urlapi.c
+++ b/lib/urlapi.c
@@ -1255,8 +1255,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
       return CURLUE_UNKNOWN_PART;
     }
     if(storep && *storep) {
-      free(*storep);
-      *storep = NULL;
+      Curl_safefree(*storep);
     }
     return CURLUE_OK;
   }
@@ -1284,8 +1283,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
     break;
   case CURLUPART_HOST:
     storep = &u->host;
-    free(u->zoneid);
-    u->zoneid = NULL;
+    Curl_safefree(u->zoneid);
     break;
   case CURLUPART_ZONEID:
     storep = &u->zoneid;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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