aboutsummaryrefslogtreecommitdiffstats
path: root/main/file.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-23 20:22:18 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-23 20:22:18 +0000
commit953e577f7b7b6b99e910b2fd103e310af5c77461 (patch)
tree977cb5f1670db3ebe175d8f99bbad3a3f136ee04 /main/file.c
parent6d8a5523b31d7d9afd03b33f435b8d2177486728 (diff)
Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk-bugs)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40953 f38db490-d61c-443f-a65b-d21fe96a405b
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) {