[sr-dev] git:master:d7111b95: modules/ims_usrloc_scscf: fixed pkg_mem leak - free db_result
Jason Penton
jason.penton at gmail.com
Wed Jan 7 12:40:51 CET 2015
Module: kamailio
Branch: master
Commit: d7111b957c4fb230e88f18f1e15039254e9c01ab
URL: https://github.com/kamailio/kamailio/commit/d7111b957c4fb230e88f18f1e15039254e9c01ab
Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at gmail.com>
Date: 2015-01-07T13:40:28+02:00
modules/ims_usrloc_scscf: fixed pkg_mem leak - free db_result
---
Modified: modules/ims_usrloc_scscf/usrloc_db.c
---
Diff: https://github.com/kamailio/kamailio/commit/d7111b957c4fb230e88f18f1e15039254e9c01ab.diff
Patch: https://github.com/kamailio/kamailio/commit/d7111b957c4fb230e88f18f1e15039254e9c01ab.patch
---
diff --git a/modules/ims_usrloc_scscf/usrloc_db.c b/modules/ims_usrloc_scscf/usrloc_db.c
index 7571ee5..c5d569f 100644
--- a/modules/ims_usrloc_scscf/usrloc_db.c
+++ b/modules/ims_usrloc_scscf/usrloc_db.c
@@ -1064,6 +1064,7 @@ int db_unlink_subscriber_from_impu(impurecord_t* _r, reg_subscriber* _reg_subscr
LM_ERR("Unable to un-link impu-subscriber in DB - impu [%.*s], subscriber [%.*s]\n", _r->public_identity.len, _r->public_identity.s, _reg_subscriber->presentity_uri.len, _reg_subscriber->presentity_uri.s);
return -1;
}
+ ul_dbf.free_result(ul_dbh, rs);
LM_DBG("Delete query success\n");
return 0;
@@ -1105,6 +1106,7 @@ int db_link_subscriber_to_impu(impurecord_t* _r, reg_subscriber* _reg_subscriber
return -1;
}
LM_DBG("Query success\n");
+ ul_dbf.free_result(ul_dbh, rs);
return 0;
}
More information about the sr-dev
mailing list