[asterisk-commits] dvossel: trunk r229670 - in /trunk: ./ funcs/func_audiohookinherit.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 12 10:44:43 CST 2009


Author: dvossel
Date: Thu Nov 12 10:44:39 2009
New Revision: 229670

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229670
Log:
Merged revisions 229669 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229669 | dvossel | 2009-11-12 10:41:49 -0600 (Thu, 12 Nov 2009) | 6 lines
  
  fixes merging error, datastore was being freed in the wrong function.
  
  (closes issue #16219)
  Reported by: aragon
........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_audiohookinherit.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_audiohookinherit.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_audiohookinherit.c?view=diff&rev=229670&r1=229669&r2=229670
==============================================================================
--- trunk/funcs/func_audiohookinherit.c (original)
+++ trunk/funcs/func_audiohookinherit.c Thu Nov 12 10:44:39 2009
@@ -126,7 +126,6 @@
 		ast_debug(3, "Moved audiohook %s from %s(%p) to %s(%p)\n",
 			audiohook->source, old_chan->name, old_chan, new_chan->name, new_chan);
 	}
-	ast_free(datastore);
 	return;
 }
 
@@ -143,6 +142,8 @@
 	while ((inheritable_audiohook = AST_LIST_REMOVE_HEAD(&audiohook_inheritance_datastore->allowed_list, list))) {
 		ast_free(inheritable_audiohook);
 	}
+
+	ast_free(audiohook_inheritance_datastore);
 }
 
 /*! \brief create an audiohook_inheritance_datastore and attach it to a channel




More information about the asterisk-commits mailing list