[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.
- [gnurl] 185/411: strerror: honor Unicode API choice on Windows, (continued)
- [gnurl] 185/411: strerror: honor Unicode API choice on Windows, gnunet, 2021/01/12
- [gnurl] 176/411: pingpong: remove a malloc per Curl_pp_vsendf call, gnunet, 2021/01/12
- [gnurl] 125/411: dynbuf: make sure Curl_dyn_tail() zero terminates, gnunet, 2021/01/12
- [gnurl] 144/411: tool_writeout: protect fputs() from NULL, gnunet, 2021/01/12
- [gnurl] 160/411: --help: strdup the category, gnunet, 2021/01/12
- [gnurl] 165/411: docs/MQTT: remove outdated paaragraphs, gnunet, 2021/01/12
- [gnurl] 175/411: symbian: drop support, gnunet, 2021/01/12
- [gnurl] 152/411: github: use new issue template feature, gnunet, 2021/01/12
- [gnurl] 171/411: http_proxy: do not count proxy headers in the header bytecount, gnunet, 2021/01/12
- [gnurl] 166/411: cmake: remove scary warning, gnunet, 2021/01/12
- [gnurl] 151/411: urlapi: use more Curl_safefree,
gnunet <=
- [gnurl] 135/411: curl: make checkpasswd use dynbuf, gnunet, 2021/01/12
- [gnurl] 77/411: llist: make it "struct Curl_llist", gnunet, 2021/01/12
- [gnurl] 186/411: ngtcp2: adapt to new NGTCP2_PROTO_VER_MAX define, gnunet, 2021/01/12
- [gnurl] 173/411: curl_krb5.h: rename from krb5.h, gnunet, 2021/01/12
- [gnurl] 127/411: curl: use curlx_dynbuf for realloc when loading config files, gnunet, 2021/01/12
- [gnurl] 129/411: test434: test -K use in a single line without newline, gnunet, 2021/01/12
- [gnurl] 184/411: imap: make imap_send use dynbuf for the send buffer management, gnunet, 2021/01/12
- [gnurl] 161/411: BUGS: convert document to markdown, gnunet, 2021/01/12
- [gnurl] 174/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 168/411: Curl_handler: add 'family' to each protocol, gnunet, 2021/01/12