From: Rémi Denis-Courmont Date: Sun, 3 Dec 2006 17:57:54 +0000 (+0000) Subject: Fix memleak (oups) X-Git-Tag: 0.9.0-test0~9104 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=d47063eabbe6ce08a87bbbaaefd286360e522813 Fix memleak (oups) --- diff --git a/modules/access/file.c b/modules/access/file.c index 33c757d1b4..8d7a9be40e 100644 --- a/modules/access/file.c +++ b/modules/access/file.c @@ -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,