[svn-commits] bbryant: trunk r131015 - /trunk/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 15 13:14:02 CDT 2008


Author: bbryant
Date: Tue Jul 15 13:14:02 2008
New Revision: 131015

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131015
Log:
Fix memory leak in app_queue when a device state is changed but it isn't 
a member of any queue.

(closes issue #13073)
Reported by: eliel
Patches:
      app_queue.c.patch uploaded by eliel (license 64)

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=131015&r1=131014&r2=131015
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Jul 15 13:14:02 2008
@@ -782,6 +782,7 @@
 	if (!curint) {
 		if (option_debug > 2)
 			ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n", technology, loc, sc->state, devstate2str(sc->state));
+		ast_free(sc);
 		return 0;
 	}
 




More information about the svn-commits mailing list