[asterisk-commits] russell: branch russell/chanspy_fixes r101412 - /team/russell/chanspy_fixes/a...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 31 10:46:07 CST 2008
Author: russell
Date: Thu Jan 31 10:46:06 2008
New Revision: 101412
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101412
Log:
Fix one case where the datastore on the previous channel wouldn't get removed
before switching to the next channel. This bug was introduced when I switched
to a single stack allocated chanspy datastore instead of a malloc'd one per
channel.
Modified:
team/russell/chanspy_fixes/apps/app_chanspy.c
Modified: team/russell/chanspy_fixes/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/team/russell/chanspy_fixes/apps/app_chanspy.c?view=diff&rev=101412&r1=101411&r2=101412
==============================================================================
--- team/russell/chanspy_fixes/apps/app_chanspy.c (original)
+++ team/russell/chanspy_fixes/apps/app_chanspy.c Thu Jan 31 10:46:06 2008
@@ -611,6 +611,7 @@
snprintf(nameprefix, AST_NAME_STRLEN, "%s/%d", spec, res);
if ((next = ast_get_channel_by_name_prefix_locked(nameprefix, strlen(nameprefix)))) {
+ peer_chanspy_ds = chanspy_ds_free(peer_chanspy_ds);
next_chanspy_ds = setup_chanspy_ds(next, &chanspy_ds);
} else {
/* stay on this channel, if it is still valid */
More information about the asterisk-commits
mailing list