diff options
author | Brad King <brad.king@kitware.com> | 2023-03-20 20:40:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-20 20:40:49 (GMT) |
commit | e3dc4df9b95272037d27be25ae5ef030ffd83fa4 (patch) | |
tree | 6132bc02d5204bd988b32ee8ab06053ec7c0e4c4 /Utilities/cmcurl/lib/dynbuf.c | |
parent | 4e6c3cd93bc870f44442e6d7e59896bc6d86ce25 (diff) | |
parent | e8bff971d9d835a65bcb1711e7214afe37b238e0 (diff) | |
download | CMake-e3dc4df9b95272037d27be25ae5ef030ffd83fa4.zip CMake-e3dc4df9b95272037d27be25ae5ef030ffd83fa4.tar.gz CMake-e3dc4df9b95272037d27be25ae5ef030ffd83fa4.tar.bz2 |
Merge branch 'upstream-curl' into update-curl
* upstream-curl:
curl 2023-03-20 (b16d1fa8)
Diffstat (limited to 'Utilities/cmcurl/lib/dynbuf.c')
-rw-r--r-- | Utilities/cmcurl/lib/dynbuf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Utilities/cmcurl/lib/dynbuf.c b/Utilities/cmcurl/lib/dynbuf.c index 847f6f6..bd3b935 100644 --- a/Utilities/cmcurl/lib/dynbuf.c +++ b/Utilities/cmcurl/lib/dynbuf.c @@ -99,8 +99,7 @@ static CURLcode dyn_nappend(struct dynbuf *s, include that as well when it uses this code */ void *p = realloc(s->bufr, a); if(!p) { - Curl_safefree(s->bufr); - s->leng = s->allc = 0; + Curl_dyn_free(s); return CURLE_OUT_OF_MEMORY; } s->bufr = p; |