From: Joshua Colp Date: Wed, 23 Aug 2006 20:22:18 +0000 (+0000) Subject: Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk... X-Git-Tag: 1.4.0-beta1~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f7b10eab64d6251b060abf78091ea3965f3cd85;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/file.c b/main/file.c index 69b7ec197e..365d233027 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) {