--- res_convert.c.orig 2009-05-25 12:41:57.000000000 +0200 +++ res_convert.c 2009-05-25 12:43:43.000000000 +0200 @@ -117,9 +117,11 @@ while ((f = ast_readframe(fs_in))) { if (ast_writestream(fs_out, f)) { + ast_filestream_frame_freed(f); ast_cli(a->fd, "Failed to convert %s.%s to %s.%s!\n", name_in, ext_in, name_out, ext_out); goto fail_out; } + ast_filestream_frame_freed(f); } cost = ast_tvdiff_ms(ast_tvnow(), start);