Module: kamailio
Branch: master
Commit: 7d7670f6d19cba5cbb8a3533795d6e271edad8f1
URL:
https://github.com/kamailio/kamailio/commit/7d7670f6d19cba5cbb8a3533795d6e2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2019-08-23T09:46:40+02:00
Merge pull request #2038 from surendratiwari3/memory_leak_rtpengine
Module:rtpengine: memory leak is fixed, if no rtpengine in list
---
Modified: src/modules/rtpengine/rtpengine_db.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7d7670f6d19cba5cbb8a3533795d6e2…
Patch:
https://github.com/kamailio/kamailio/commit/7d7670f6d19cba5cbb8a3533795d6e2…
---
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;
}