Module: kamailio
Branch: master
Commit: ee06666c43d96029315dae7618e10d381265a85a
URL:
https://github.com/kamailio/kamailio/commit/ee06666c43d96029315dae7618e10d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-05-01T05:28:18+02:00
tm: free new buffer on drop for local requests
- GH #3403
---
Modified: src/modules/tm/uac.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ee06666c43d96029315dae7618e10d3…
Patch:
https://github.com/kamailio/kamailio/commit/ee06666c43d96029315dae7618e10d3…
---
diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c
index 206f69ef59d..5559533e5fb 100644
--- a/src/modules/tm/uac.c
+++ b/src/modules/tm/uac.c
@@ -559,6 +559,7 @@ static inline int t_uac_prepare(
refresh_shortcuts =
t_run_local_req(&buf, &buf_len, uac_r, new_cell, request);
if(unlikely(refresh_shortcuts == E_DROP)) {
+ shm_free(buf);
ret = E_DROP;
goto error1;
}