[sr-dev] git:master:7d7670f6: Merge pull request #2038 from surendratiwari3/memory_leak_rtpengine

GitHub noreply at github.com
Fri Aug 23 09:46:46 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at 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/7d7670f6d19cba5cbb8a3533795d6e271edad8f1.diff
Patch: https://github.com/kamailio/kamailio/commit/7d7670f6d19cba5cbb8a3533795d6e271edad8f1.patch

---

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;
 	}
 




More information about the sr-dev mailing list