[sr-dev] git:master:d09176e2: Merge pull request #1110 from khoegh/master
GitHub
noreply at github.com
Tue May 2 10:17:16 CEST 2017
Module: kamailio
Branch: master
Commit: d09176e291a0b06ebd2ea386195a1968bffd4e1a
URL: https://github.com/kamailio/kamailio/commit/d09176e291a0b06ebd2ea386195a1968bffd4e1a
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2017-05-02T10:17:11+02:00
Merge pull request #1110 from khoegh/master
htable: Fix memory leak when reloading an empty htable from database
---
Modified: src/modules/htable/ht_db.c
---
Diff: https://github.com/kamailio/kamailio/commit/d09176e291a0b06ebd2ea386195a1968bffd4e1a.diff
Patch: https://github.com/kamailio/kamailio/commit/d09176e291a0b06ebd2ea386195a1968bffd4e1a.patch
---
diff --git a/src/modules/htable/ht_db.c b/src/modules/htable/ht_db.c
index 83a9f01..fd5ec46 100644
--- a/src/modules/htable/ht_db.c
+++ b/src/modules/htable/ht_db.c
@@ -247,6 +247,7 @@ int ht_db_load_table(ht_t *ht, str *dbtable, int mode)
} else {
if(RES_ROW_N(db_res)==0)
{
+ ht_dbf.free_result(ht_db_con, db_res);
LM_DBG("Nothing to be loaded in hash table\n");
return 0;
}
More information about the sr-dev
mailing list