Skip to content

Commit

Permalink
Merge pull request #1110 from khoegh/master
Browse files Browse the repository at this point in the history
htable: Fix memory leak when reloading an empty htable from database
  • Loading branch information
miconda committed May 2, 2017
2 parents f335900 + 07ce768 commit d09176e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/htable/ht_db.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit d09176e

Please sign in to comment.