[Asterisk-cvs] asterisk channel.c,1.51,1.52

markster at lists.digium.com markster at lists.digium.com
Thu Nov 6 21:21:51 CST 2003


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv30712

Modified Files:
	channel.c 
Log Message:
Gotta actually free the frame...


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- channel.c	4 Nov 2003 02:40:09 -0000	1.51
+++ channel.c	7 Nov 2003 03:48:03 -0000	1.52
@@ -1064,8 +1064,10 @@
 		f = chan->pvt->readq;
 		chan->pvt->readq = f->next;
 		/* Interpret hangup and return NULL */
-		if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP))
+		if ((f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_HANGUP)) {
+			ast_frfree(f);
 			f = NULL;
+		}
 	} else {
 		chan->blocker = pthread_self();
 		if (chan->exception) {




More information about the svn-commits mailing list