mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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/branches/1.4@167541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -468,7 +468,7 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm
|
||||
if (open_wrapper(s)) {
|
||||
fclose(bfile);
|
||||
free(fn);
|
||||
free(s);
|
||||
ast_closestream(s);
|
||||
continue; /* cannot run open on file */
|
||||
}
|
||||
/* ok this is good for OPEN */
|
||||
|
Reference in New Issue
Block a user