Module: kamailio
Branch: master
Commit: ceaafc67dae4f7e7424c8706ccea90c30eed45b6
URL:
https://github.com/kamailio/kamailio/commit/ceaafc67dae4f7e7424c8706ccea90c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-04T12:29:08+02:00
rls: reset vars to avoid double free in case of error
---
Modified: src/modules/rls/rls_db.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ceaafc67dae4f7e7424c8706ccea90c…
Patch:
https://github.com/kamailio/kamailio/commit/ceaafc67dae4f7e7424c8706ccea90c…
---
diff --git a/src/modules/rls/rls_db.c b/src/modules/rls/rls_db.c
index f7c03efcb8..35618675c2 100644
--- a/src/modules/rls/rls_db.c
+++ b/src/modules/rls/rls_db.c
@@ -228,9 +228,11 @@ int delete_expired_subs_rlsdb( void )
}
pkg_free(rlsubs_did.s);
+ rlsubs_did.s = NULL;
}
rls_dbf.free_result(rls_db, result);
+ result = NULL;
if (rls_dbf.end_transaction)
{