[asterisk-commits] russell: branch 1.2 r65389 - /branches/1.2/apps/app_queue.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue May 22 06:07:03 MST 2007


Author: russell
Date: Tue May 22 08:07:03 2007
New Revision: 65389

URL: http://svn.digium.com/view/asterisk?view=rev&rev=65389
Log:
Fix a memory leak that I just noticed in the device state handling in app_queue.
On most device state changes, it would leak roughly 8 to 64 bytes (the length of
the name of the device).

Modified:
    branches/1.2/apps/app_queue.c

Modified: branches/1.2/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_queue.c?view=diff&rev=65389&r1=65388&r2=65389
==============================================================================
--- branches/1.2/apps/app_queue.c (original)
+++ branches/1.2/apps/app_queue.c Tue May 22 08:07:03 2007
@@ -539,6 +539,8 @@
 		ast_mutex_unlock(&q->lock);
 	}
 	ast_mutex_unlock(&qlock);
+
+	free(sc);
 
 	return NULL;
 }



More information about the asterisk-commits mailing list