Commit d47063ea authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix memleak (oups)

parent 4ab1c771
...@@ -444,6 +444,7 @@ static int open_file (access_t *p_access, const char *psz_name) ...@@ -444,6 +444,7 @@ static int open_file (access_t *p_access, const char *psz_name)
fseek( p_sys->fd, 0, SEEK_SET ); fseek( p_sys->fd, 0, SEEK_SET );
#else #else
int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666); int fd = utf8_open (path, O_RDONLY | O_NONBLOCK /* O_LARGEFILE*/, 0666);
free (path);
if (fd == -1) if (fd == -1)
{ {
msg_Err (p_access, "cannot open file %s (%s)", psz_name, msg_Err (p_access, "cannot open file %s (%s)", psz_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment