Change #262478
| Category | curl |
| Changed by | Daniel Stenberg <daniel@haxx.se> |
| Changed at | Fri 27 Mar 2026 08:10:32 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | b71973c1159295e094cc48dbb7442bbc642bd434 |
Comments
tool: fix memory mixups memory allocated by libcurl must be freed with curl_free() and vice versa, memory allocated by the tool itself must be freed with curlx_free(). - dynbuf: free libcurl data with curl_free() - tool_operate: make sure we get URL using the right memory - tool_operhlp: free libcurl memory with curl_free() - tool_operate: free curl_maprintf() pointer with curl_free - var: data from curlx_base64_decode needs curlx_free - tool_operate: fix memory juggling in etag handling - tool_cb_hdr: fix memory area mixups - tool_operate: another mixup in etag management - tool_cb_hdr: more memory mixup fixes - tool_cfgable.c: document some details - tool_help: show global-mem-debug in -V output Closes #21099
Changed files
- lib/curlx/dynbuf.c
- src/tool_cb_hdr.c
- src/tool_cfgable.c
- src/tool_help.c
- src/tool_operate.c
- src/tool_operhlp.c
- src/var.c