]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 168142 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Fri, 9 Jan 2009 20:28:16 +0000 (20:28 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 9 Jan 2009 20:28:16 +0000 (20:28 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168142 | twilson | 2009-01-09 14:25:25 -0600 (Fri, 09 Jan 2009) | 7 lines

  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)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@168152 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_phoneprov.c

index d89537308f3ce0d9e81e4d3bc01d7ab0bc478c17..16c90df4b3dacaa9271a03bd49663a855d4ca28d 100644 (file)
@@ -783,6 +783,7 @@ static int set_config(void)
 
        if (!(cfg = ast_config_load("phoneprov.conf", config_flags))) {
                ast_log(LOG_ERROR, "Unable to load config phoneprov.conf\n");
+               ast_config_destroy(cfg);
                return -1;
        }