Skip to content
Snippets Groups Projects
Commit 5dc7640d authored by Martin Pycko's avatar Martin Pycko
Browse files

Free the translators on the ast_closestream

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d2e85570
No related branches found
No related tags found
No related merge requests found
......@@ -627,6 +627,11 @@ int ast_closestream(struct ast_filestream *f)
f->owner->vstreamid = -1;
}
}
/* destroy the translator on exit */
if (f->trans) {
ast_translator_free_path(f->trans);
f->trans = NULL;
}
if (f->filename)
free(f->filename);
f->filename = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment