projects
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c50b8
)
[PATCH] http_chunks: reset the trailer to avoid memory leak
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 15 Jul 2025 06:37:03 +0000
(08:37 +0200)
committer
Samuel Henrique
<samueloph@debian.org>
Sat, 19 Jul 2025 19:04:59 +0000
(21:04 +0200)
Brought-by: dheerajsangamkar on github
URL: https://github.com/curl/curl/issues/17749
Gbp-Pq: Name 0001-http_chunks-reset-the-trailer-to-avoid-memory-leak.patch
lib/http_chunks.c
patch
|
blob
|
history
diff --git
a/lib/http_chunks.c
b/lib/http_chunks.c
index bda00d38338771a5869de4c1156dce96c77ff649..867a8b4fbf9048cd93cd39bec88330d2f74eb791 100644
(file)
--- a/
lib/http_chunks.c
+++ b/
lib/http_chunks.c
@@
-230,7
+230,7
@@
CHUNKcode Curl_httpchunk_read(struct Curl_easy *data,
return CHUNKE_PASSTHRU_ERROR;
}
}
- Curl_dyn_
reset
(&conn->trailer);
+ Curl_dyn_
free
(&conn->trailer);
ch->state = CHUNK_TRAILER_CR;
if(*datap == 0x0a)
/* already on the LF */