Module: kamailio
Branch: master
Commit: b4753ae4216b0c960ac094f4be8232fb4d0147b0
URL: 
https://github.com/kamailio/kamailio/commit/b4753ae4216b0c960ac094f4be8232fb4d0147b0

Author: vijay kumar <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2024-04-16T14:38:27+02:00

rtpengine: fix pkg mem leak in send_rtpp_command()
- freed request.s after sending request to websocket

---

Modified: src/modules/rtpengine/rtpengine.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b4753ae4216b0c960ac094f4be8232fb4d0147b0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b4753ae4216b0c960ac094f4be8232fb4d0147b0.patch

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index c51b4742081..6d62b92900d 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3672,6 +3672,7 @@ static char *send_rtpp_command(
 
                len = _rtpe_lwscb.request(&node->rn_url, (str *)&rtpe_proto, 
&request,
                                &response, rtpengine_tout_ms * 1000);
+               pkg_free(request.s);
 
                if(len < 0) {
                        LM_ERR("failed to do websocket request\n");

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to