Displaying 1 result from an estimated 1 matches for "ast_smoother_free".
Did you mean:
ast_smoother_feed
2003 Jul 08
0
Patch to fix some segfaults in Asterisk
...FFSET;
+ /*s->f.data = s->framedata + AST_FRIENDLY_OFFSET;*/
+ s->f.data = s->framedata;
+ /*s->f.offset = 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...