Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #270344

Category None
Changed by Tim Rühsen <tim.ruehsenohnoyoudont@gmx.de>
Changed at Wed 10 Jun 2026 19:13:08
Repository https://api.github.com/repos/rockdaboot/wget2
Project rockdaboot/wget2
Branch master
Revision b46a2440cb01afc47349bc93172ef85d25ad54bb

Comments

Fix memory leaks and heap-allocation ownership

* examples/http_get2.c: Amend wget_http_send_request param.
* examples/http_multi_get.c: Likewise.
* examples/websequencediagram.c: Likewise.
* fuzz/libwget_http_client_fuzzer.c: Likewise.
* include/wget/wget.h: New typedef wget_http_free_user_data_callback,
  (wget_http_request_st): New member user_data_callback,
  New function wget_http_request_set_free_user_data_cb,
  Changed type of second param of wget_http_send_request.
* libwget/http.c: New function wget_http_request_set_free_user_data_cb,
  Changed type of second param of wget_http_send_request,
  Added debug lines in wget_http_get_response_cb,
  Free request if response is missing.
* libwget/http.h: Change type of second param of wget_http2_send_request.
* libwget/http2.c: Change type of second param of wget_http2_send_request.
* libwget/http_highlevel.c: Change second param of wget_http_send_request,
  Set request data before sending.
* libwget/http_parse.c: Call wget_http_free_request from wget_http_free_response.
* libwget/ssl_gnutls.c: Change second param of wget_http_send_request.
* libwget/ssl_openssl.c: Free http response in verify_ocsp.
* src/wget.c: New function free_user_data,
  Call wget_http_request_set_free_user_data_cb in http_send_request,
  Do not free context in http_receive_response.

Changed files