]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Clean up memory leak in config file on off nominal paths when glob is allowed
authorMatthew Jordan <mjordan@digium.com>
Fri, 26 Apr 2013 21:27:32 +0000 (21:27 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 26 Apr 2013 21:27:32 +0000 (21:27 +0000)
commitbf9fe013591898fd7def1d43776612378818ea95
tree4e6e6568e405a1e4d9cdc6ffc1d22b179d01afad
parent65c34c59de686dca8e92f2ffb9695791d05a362e
Clean up memory leak in config file on off nominal paths when glob is allowed

If a system allows for its usage, Asterisk will use glob to help parse
Asterisk .conf files. The config file loading routine was leaking the memory
allocated by the glob() routine when the config file was in an unmodified
or invalid state.

This patch properly calls globfree in those off nominal paths.

(closes issue ASTERISK-21412)
Reported by: Corey Farrell
patches:
  config_glob_leak.patch uploaded by Corey Farrell (license 5909)
........

Merged revisions 386672 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@386677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c