|
|
@ -243,10 +243,10 @@ int ast_yyerror(const char *, YYLTYPE *, struct parse_io *); /* likewise */
|
|
|
|
|
|
|
|
|
|
|
|
void ast_yyfree(void *ptr, yyscan_t yyscanner)
|
|
|
|
void ast_yyfree(void *ptr, yyscan_t yyscanner)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ptr) /* the normal generated yyfree func just frees its first arg;
|
|
|
|
/* the normal generated yyfree func just frees its first arg;
|
|
|
|
this get complaints on some systems, as sometimes this
|
|
|
|
this get complaints on some systems, as sometimes this
|
|
|
|
arg is a nil ptr! It's usually not fatal, but is irritating! */
|
|
|
|
arg is a nil ptr! It's usually not fatal, but is irritating! */
|
|
|
|
free( (char *) ptr );
|
|
|
|
free( (char *) ptr );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
|
|
|
|
int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
|
|
|
@ -287,8 +287,7 @@ int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
buf[0] = 0;
|
|
|
|
buf[0] = 0;
|
|
|
|
return_value = strlen(buf);
|
|
|
|
return_value = strlen(buf);
|
|
|
|
if (io.val->u.s)
|
|
|
|
free(io.val->u.s);
|
|
|
|
free(io.val->u.s);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
free(io.val);
|
|
|
|
free(io.val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|