[asterisk-commits] file: trunk r92364 - in /trunk: ./	main/global_datastores.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Dec 11 13:52:38 CST 2007
    
    
  
Author: file
Date: Tue Dec 11 13:52:37 2007
New Revision: 92364
URL: http://svn.digium.com/view/asterisk?view=rev&rev=92364
Log:
Merged revisions 92363 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r92363 | file | 2007-12-11 15:51:40 -0400 (Tue, 11 Dec 2007) | 6 lines
Fix potential memory leak with the dialed interfaces list if another memory allocation fails.
(closes issue #11507)
Reported by: eliel
Patches:
      global_datastores.c.patch uploaded by eliel (license 64)
........
Modified:
    trunk/   (props changed)
    trunk/main/global_datastores.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/global_datastores.c
URL: http://svn.digium.com/view/asterisk/trunk/main/global_datastores.c?view=diff&rev=92364&r1=92363&r2=92364
==============================================================================
--- trunk/main/global_datastores.c (original)
+++ trunk/main/global_datastores.c Tue Dec 11 13:52:37 2007
@@ -65,6 +65,7 @@
 		struct ast_dialed_interface *di2 = ast_calloc(1, sizeof(*di2) + strlen(di->interface));
 		if(!di2) {
 			AST_LIST_UNLOCK(old_list);
+			dialed_interface_destroy(new_list);
 			return NULL;
 		}
 		strcpy(di2->interface, di->interface);
    
    
More information about the asterisk-commits
mailing list