Skip to content
Snippets Groups Projects
Commit 1c7519cd authored by Russell Bryant's avatar Russell Bryant
Browse files

Merged revisions 167541 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r167541 | russell | 2009-01-07 16:03:59 -0600 (Wed, 07 Jan 2009) | 4 lines

Don't use free() directly.  This caused a crash since ast_filestream is now an ao2 object.

Reported by JunK-Y on IRC, #asterisk-dev

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@167542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 3a4e3df1
No related branches found
No related tags found
No related merge requests found
...@@ -450,7 +450,7 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm ...@@ -450,7 +450,7 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm
if (open_wrapper(s)) { if (open_wrapper(s)) {
fclose(bfile); fclose(bfile);
ast_free(fn); ast_free(fn);
ast_free(s); ast_closestream(s);
continue; /* cannot run open on file */ continue; /* cannot run open on file */
} }
if (st.st_size == 0) { if (st.st_size == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment