[Asterisk-cvs] asterisk/apps app_dial.c,1.110,1.111
markster at lists.digium.com
markster at lists.digium.com
Mon Dec 6 12:14:32 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv21833/apps
Modified Files:
app_dial.c
Log Message:
Add missing free's in rare circumstances (bug #2985)
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- app_dial.c 28 Nov 2004 22:08:44 -0000 1.110
+++ app_dial.c 6 Dec 2004 17:12:21 -0000 1.111
@@ -431,6 +431,8 @@
/* Got hung up */
*to=-1;
strncpy(status, "CANCEL", statussize - 1);
+ if (f)
+ ast_frfree(f);
return NULL;
}
if (f && (f->frametype == AST_FRAME_DTMF) && *allowdisconnect_out &&
@@ -439,6 +441,7 @@
ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
*to=0;
strcpy(status, "CANCEL");
+ ast_frfree(f);
return NULL;
}
if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF))) {
More information about the svn-commits
mailing list