]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix memory leak while loading priority modules and adding formats
authorMatthew Jordan <mjordan@digium.com>
Wed, 12 Jun 2013 02:25:23 +0000 (02:25 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 12 Jun 2013 02:25:23 +0000 (02:25 +0000)
commit56a4d03ee20190e06bde13320fce542c4e29a3ee
treeec5a9376d59e6bd424c15b3924c44d6efbcf59b5
parent13b2c25687e336b53637fa58db48565b63dd2e58
Fix memory leak while loading priority modules and adding formats

This patch fixes two memory leaks:
 * When we load a module with the LOAD_PRIORITY flag, we remove its entry from
   the load order list. Unfortunately, we don't free the memory associated with
   entry in the list. This patch corrects that and properly frees the memory
   for the module in the list.

 * When adding a custom format (such as SILK or CELT), the routine for adding
   the format was leaking a reference. RAII_VAR cleans this up properly.

........

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

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