Module: kamailio
Branch: master
Commit: 0e29879ee950d5a9e9a669c7d5c634416d52f5c9
URL:
https://github.com/kamailio/kamailio/commit/0e29879ee950d5a9e9a669c7d5c6344…
Author: Surendra Tiwari <surendratiwari3(a)gmail.com>
Committer: surendra tiwari <surendratiwari3(a)gmail.com>
Date: 2019-08-20T13:17:04+05:30
Module:rtpengine: memory leak is fixed, if no rtpengine in list while reload
---
Modified: src/modules/rtpengine/rtpengine_db.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0e29879ee950d5a9e9a669c7d5c6344…
Patch:
https://github.com/kamailio/kamailio/commit/0e29879ee950d5a9e9a669c7d5c6344…
---
diff --git a/src/modules/rtpengine/rtpengine_db.c b/src/modules/rtpengine/rtpengine_db.c
index 0da3a6f371..8532fd270a 100644
--- a/src/modules/rtpengine/rtpengine_db.c
+++ b/src/modules/rtpengine/rtpengine_db.c
@@ -98,6 +98,7 @@ static int rtpp_load_db(void)
if (n_rows == 0)
{
LM_WARN("No rtpproxy instances in database\n");
+ rtpp_dbf.free_result(rtpp_db_handle, res);
return 0;
}