[asterisk-commits] russell: trunk r51303 - /trunk/main/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 19 10:02:37 MST 2007


Author: russell
Date: Fri Jan 19 11:02:36 2007
New Revision: 51303

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

................
r51302 | russell | 2007-01-19 10:56:17 -0600 (Fri, 19 Jan 2007) | 12 lines

Merged revisions 51300 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r51300 | russell | 2007-01-19 10:44:09 -0600 (Fri, 19 Jan 2007) | 4 lines

Fix a memory leak on command line tab completion.  The container for the
matches was freed, but the individual matches themselves were not.
(issue #8851, arkadia)

........

................

Modified:
    trunk/main/asterisk.c

Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=51303&r1=51302&r2=51303
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Fri Jan 19 11:02:36 2007
@@ -1968,6 +1968,8 @@
 				retval = CC_REFRESH;
 			}
 		}
+		for (i = 0; matches[i]; i++)
+			free(matches[i]);
 		free(matches);
 	}
 



More information about the asterisk-commits mailing list