Module: sip-router Branch: master Commit: faa528e4ac829f498fb770606ac2a3196a6cabe3 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=faa528e4...
Author: Marius Zbihlei marius.zbihlei@1and1.ro Committer: Marius Zbihlei marius.zbihlei@1and1.ro Date: Mon Jan 24 10:33:10 2011 +0200
modules_k/cfgutils: Fixed memory leak and incorrect message in error case on mi commmand
---
modules_k/cfgutils/cfgutils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules_k/cfgutils/cfgutils.c b/modules_k/cfgutils/cfgutils.c index 3472768..ed05b67 100644 --- a/modules_k/cfgutils/cfgutils.c +++ b/modules_k/cfgutils/cfgutils.c @@ -552,6 +552,7 @@ static struct mi_root* mi_check_hash(struct mi_root* cmd, void* param ) if (MD5File(tmp, hash_file) != 0) { LM_ERR("could not hash the config file"); rpl_tree = init_mi_tree( 500, MI_INTERNAL_ERR_S, MI_INTERNAL_ERR_LEN ); + return rpl_tree; } if (strncmp(config_hash, tmp, MD5_LEN) == 0) {