Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk...
authorJoshua Colp <jcolp@digium.com>
Wed, 23 Aug 2006 20:22:18 +0000 (20:22 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 23 Aug 2006 20:22:18 +0000 (20:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40953 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/file.c

index 69b7ec1..365d233 100644 (file)
@@ -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) {