]> git.sesse.net Git - vlc/commitdiff
Fix memleak (oups)
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Dec 2006 17:57:54 +0000 (17:57 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Dec 2006 17:57:54 +0000 (17:57 +0000)
modules/access/file.c

index 33c757d1b4f3c64aecb468ece9e00f8b5bd865f2..8d7a9be40e01f7727d20cd355351102d5a616d44 100644 (file)
@@ -444,6 +444,7 @@ static int open_file (access_t *p_access, const char *psz_name)
     fseek( p_sys->fd, 0, SEEK_SET );
 #else
     int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666);
+    free (path);
     if (fd == -1)
     {
         msg_Err (p_access, "cannot open file %s (%s)", psz_name,