git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ab1c77
)
Fix memleak (oups)
author
Rémi Denis-Courmont
<rem@videolan.org>
Sun, 3 Dec 2006 17:57:54 +0000
(17:57 +0000)
committer
Rémi Denis-Courmont
<rem@videolan.org>
Sun, 3 Dec 2006 17:57:54 +0000
(17:57 +0000)
modules/access/file.c
patch
|
blob
|
history
diff --git
a/modules/access/file.c
b/modules/access/file.c
index
33c757d
..
8d7a9be
100644
(file)
--- 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);
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,
if (fd == -1)
{
msg_Err (p_access, "cannot open file %s (%s)", psz_name,