Index: main/file.c =================================================================== --- main/file.c (revision 173199) +++ main/file.c (working copy) @@ -717,6 +717,9 @@ if (fr) ast_log(LOG_WARNING, "Failed to write frame\n"); goto return_failure; + } + if (fr) { + ast_frfree(fr); } } if (whennext != s->lasttimeout) {