Module: kamailio Branch: 5.8 Commit: b44aed1125db5ae5d272e90c842fdc2f68ad1b15 URL: https://github.com/kamailio/kamailio/commit/b44aed1125db5ae5d272e90c842fdc2f68ad1b15
Author: Federico Cabiddu <federico.cabi...@gmail.com> Committer: Federico Cabiddu <federico.cabi...@gmail.com> Date: 2025-09-03T15:35:40+02:00 http_async_client: free cell->reply when curl handler is reused for http challenge --- Modified: src/modules/http_async_client/http_multi.c --- Diff: https://github.com/kamailio/kamailio/commit/b44aed1125db5ae5d272e90c842fdc2f68ad1b15.diff Patch: https://github.com/kamailio/kamailio/commit/b44aed1125db5ae5d272e90c842fdc2f68ad1b15.patch --- diff --git a/src/modules/http_async_client/http_multi.c b/src/modules/http_async_client/http_multi.c index 7edc0ddc1a0..1720b1802e6 100644 --- a/src/modules/http_async_client/http_multi.c +++ b/src/modules/http_async_client/http_multi.c @@ -184,6 +184,14 @@ int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) } else { LM_DBG("Changing action from %s to %s\n", whatstr[cell->action], whatstr[what]); + if(cell->action == CURL_POLL_IN && what == CURL_POLL_OUT) { + if(cell->reply) { + if(cell->reply->result) + shm_free(cell->reply->result); + shm_free(cell->reply); + cell->reply = NULL; + } + } setsock(cell, s, e, what); } } _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!