Index: res/res_adsi.c =================================================================== --- res/res_adsi.c (revision 89527) +++ res/res_adsi.c (working copy) @@ -179,6 +179,7 @@ outf.samples = amt; if (ast_write(chan, &outf)) { ast_log(LOG_WARNING, "Failed to carefully write frame\n"); + ast_frfree(inf); return -1; } /* Update pointers and lengths */ @@ -242,6 +243,7 @@ if (!chan->adsicpe) chan->adsicpe = AST_ADSI_UNAVAILABLE; errno = ENOSYS; + ast_frfree(f); return -1; } }