summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-08-23 20:22:18 +0000
committerJoshua Colp <jcolp@digium.com>2006-08-23 20:22:18 +0000
commit3f7b10eab64d6251b060abf78091ea3965f3cd85 (patch)
tree977cb5f1670db3ebe175d8f99bbad3a3f136ee04 /main/file.c
parent7eecf0bfbc8f5c256e6005aa407f2a7e0ec26183 (diff)
Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk-bugs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c
index 69b7ec197..365d23302 100644
--- a/main/file.c
+++ b/main/file.c
@@ -417,6 +417,7 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm
chan->stream = s;
else
chan->vstream = s;
+ free(fn);
break;
}
switch (action) {