[asterisk-commits] russell: branch 1.4 r109763 - /branches/1.4/apps/app_chanspy.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 18 17:34:43 CDT 2008


Author: russell
Date: Tue Mar 18 17:34:42 2008
New Revision: 109763

URL: http://svn.digium.com/view/asterisk?view=rev&rev=109763
Log:
Fix one place where the chanspy datastore isn't removed from a channel.
(issue #12243, reported by atis, patch by me)

Modified:
    branches/1.4/apps/app_chanspy.c

Modified: branches/1.4/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_chanspy.c?view=diff&rev=109763&r1=109762&r2=109763
==============================================================================
--- branches/1.4/apps/app_chanspy.c (original)
+++ branches/1.4/apps/app_chanspy.c Tue Mar 18 17:34:42 2008
@@ -612,8 +612,10 @@
 					res = ast_streamfile(chan, peer_name, chan->language);
 					if (!res)
 						res = ast_waitstream(chan, "");
-					if (res)
+					if (res) {
+						chanspy_ds_free(peer_chanspy_ds);
 						break;
+					}
 				} else
 					res = ast_say_character_str(chan, peer_name, "", chan->language);
 				if ((num = atoi(ptr))) 




More information about the asterisk-commits mailing list