[asterisk-commits] russell: branch 1.4 r51302 - /branches/1.4/main/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 19 09:56:18 MST 2007


Author: russell
Date: Fri Jan 19 10:56:17 2007
New Revision: 51302

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51302
Log:
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:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=51302&r1=51301&r2=51302
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Fri Jan 19 10:56:17 2007
@@ -2037,6 +2037,8 @@
 				retval = CC_REFRESH;
 			}
 		}
+		for (i = 0; matches[i]; i++)
+			free(matches[i]);
 		free(matches);
 	}
 



More information about the asterisk-commits mailing list