Displaying 1 result from an estimated 1 matches for "ast_frame_header_new".
2003 Jul 08
0
Patch to fix some segfaults in Asterisk
...set = AST_FRIENDLY_OFFSET;*/
+ s->f.offset = 0;
s->f.datalen = s->size;
s->f.samples = s->size * s->samplesperbyte;
/* Fill Data */
@@ -141,7 +143,8 @@
void ast_smoother_free(struct ast_smoother *s)
{
- free(s);
+ if (s != NULL)
+ free(s);
}
static struct ast_frame *ast_frame_header_new(void)
Index: apps/Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- apps/Makefile 16 May 2003 20:57:12 -0000 1.8
+++ apps/Makefile 8 Jul 2003 10:48:15 -0000
@@ -35,7 +35,7 @...