From 99b0c859a6f0ed9aa9352b4ab9ec25ee7cdc5166 Mon Sep 17 00:00:00 2001 From: russell Date: Wed, 7 Jan 2009 22:05:29 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@167542 f38db490-d61c-443f-a65b-d21fe96a405b --- main/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/file.c') diff --git a/main/file.c b/main/file.c index aee964649..c0bc758b3 100644 --- a/main/file.c +++ b/main/file.c @@ -450,7 +450,7 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm if (open_wrapper(s)) { fclose(bfile); ast_free(fn); - ast_free(s); + ast_closestream(s); continue; /* cannot run open on file */ } if (st.st_size == 0) { -- cgit v1.2.3