[asterisk-dev] ast_frfree

Kevin P. Fleming kpfleming at digium.com
Tue Sep 26 06:22:14 MST 2006


----- Steve Underwood <steveu at coppice.org> wrote:
> and app_rxfax and app_txfax are like this. Since Asterisk 1.2.10 I
> have 
> been receiving complaints of crashes, though my code hasn't changed. 
> Someone did a little probing and found ast_read() is sometimes
> returning 
> NULL frames (i.e. type 5), and that when these are freed in ast_frfree

Sure sounds like a bug to me. ast_frfree() should only be trying to free frame components that are marked as having been malloc()'d, and the constant 'null frame' that ast_read returns shouldn't be marked that way.

-- 
Kevin P. Fleming
Senior Software Engineer
Digium, Inc.



More information about the asterisk-dev mailing list