[svn-commits] mmichelson: branch mmichelson/queue_bugbug r394462 - /team/mmichelson/queue_b...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 16 12:24:34 CDT 2013


Author: mmichelson
Date: Tue Jul 16 12:24:32 2013
New Revision: 394462

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394462
Log:
Resolve some memory leaks.


Modified:
    team/mmichelson/queue_bugbug/apps/app_queue.c

Modified: team/mmichelson/queue_bugbug/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/queue_bugbug/apps/app_queue.c?view=diff&rev=394462&r1=394461&r2=394462
==============================================================================
--- team/mmichelson/queue_bugbug/apps/app_queue.c (original)
+++ team/mmichelson/queue_bugbug/apps/app_queue.c Tue Jul 16 12:24:32 2013
@@ -5269,6 +5269,7 @@
 		ao2_lock(queue_data);
 		if (queue_data->hangup_detected) {
 			ao2_unlock(queue_data);
+			stasis_unsubscribe(sub);
 			return;
 		}
 		queue_data->hangup_detected = 1;
@@ -5294,6 +5295,7 @@
 		ast_log(LOG_NOTICE, "Detected hangup request on channel %s\n", channel_blob->snapshot->name);
 		send_agent_complete(queue_data->queue, caller, agent, queue_data->member,
 				queue_data->holdstart, queue_data->starttime, reason);
+		stasis_unsubscribe(sub);
 	}
 }
 




More information about the svn-commits mailing list