Module:rtpengine: memory leak is fixed, if no rtpengine in list while reload 2038/head
authorSurendra Tiwari <surendratiwari3@gmail.com>
Tue, 20 Aug 2019 07:47:04 +0000 (13:17 +0530)
committersurendra tiwari <surendratiwari3@gmail.com>
Tue, 20 Aug 2019 07:47:04 +0000 (13:17 +0530)
src/modules/rtpengine/rtpengine_db.c

index 0da3a6f..8532fd2 100644 (file)
@@ -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;
        }