[asterisk-commits] twilson: trunk r168142 - /trunk/res/res_phoneprov.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 9 14:25:26 CST 2009
Author: twilson
Date: Fri Jan 9 14:25:25 2009
New Revision: 168142
URL: http://svn.digium.com/view/asterisk?view=rev&rev=168142
Log:
Don't leak memory if phoneprov.conf does not exist
(closes issue #14203)
Reported by: jamesgolovich
Patches:
asterisk-phoneprovleak.diff.txt uploaded by jamesgolovich (license 176)
Modified:
trunk/res/res_phoneprov.c
Modified: trunk/res/res_phoneprov.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_phoneprov.c?view=diff&rev=168142&r1=168141&r2=168142
==============================================================================
--- trunk/res/res_phoneprov.c (original)
+++ trunk/res/res_phoneprov.c Fri Jan 9 14:25:25 2009
@@ -944,6 +944,7 @@
if (!(phoneprov_cfg = ast_config_load("phoneprov.conf", config_flags)) || phoneprov_cfg == CONFIG_STATUS_FILEINVALID) {
ast_log(LOG_ERROR, "Unable to load config phoneprov.conf\n");
+ ast_config_destroy(cfg);
return -1;
}
More information about the asterisk-commits
mailing list