[sr-dev] git:master:0e29879e: Module:rtpengine: memory leak is fixed, if no rtpengine in list while reload

surendra tiwari surendratiwari3 at gmail.com
Fri Aug 23 09:46:45 CEST 2019


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

Author: Surendra Tiwari <surendratiwari3 at gmail.com>
Committer: surendra tiwari <surendratiwari3 at 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/0e29879ee950d5a9e9a669c7d5c634416d52f5c9.diff
Patch: https://github.com/kamailio/kamailio/commit/0e29879ee950d5a9e9a669c7d5c634416d52f5c9.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