Module: kamailio Branch: master Commit: 8da785b61c6dd02e15790999aa342e26fa37b657 URL: https://github.com/kamailio/kamailio/commit/8da785b61c6dd02e15790999aa342e26fa37b657
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-06-09T10:17:20+02:00 xhttp: do not free the data used for reply --- Modified: src/modules/xhttp/xhttp_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/8da785b61c6dd02e15790999aa342e26fa37b657.diff Patch: https://github.com/kamailio/kamailio/commit/8da785b61c6dd02e15790999aa342e26fa37b657.patch --- diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c index ddb90d75b33..bdc8f27018b 100644 --- a/src/modules/xhttp/xhttp_mod.c +++ b/src/modules/xhttp/xhttp_mod.c @@ -414,7 +414,7 @@ static int xhttp_send_reply( pkg_free(tbuf.s); return -1; } - pkg_free(tbuf.s); + tbuf.s = NULL; LM_DBG("response with content-type: %.*s\n", ctype->len, ctype->s); } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
