summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2006-12-13 20:52:27 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2006-12-13 20:52:27 +0000
commit25d5d0647f9da129576373972ad53e107743eeb4 (patch)
tree9014be6c329650913a58def249f2c8ba5a4898dd /src
parent66a3c5bcaaf6f4ac936554ebf39eaaec4535e034 (diff)
downloadxine-lib-25d5d0647f9da129576373972ad53e107743eeb4.tar.gz
xine-lib-25d5d0647f9da129576373972ad53e107743eeb4.tar.bz2
Don't leak directory handles when reading DVDs or DVD images.
Does not affect access via DVD device or image. CVS patchset: 8414 CVS date: 2006/12/13 20:52:27
Diffstat (limited to 'src')
-rw-r--r--src/input/libdvdnav/dvd_reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/libdvdnav/dvd_reader.c b/src/input/libdvdnav/dvd_reader.c
index e71d6ca42..7ecd8f1ba 100644
--- a/src/input/libdvdnav/dvd_reader.c
+++ b/src/input/libdvdnav/dvd_reader.c
@@ -603,10 +603,12 @@ static int findDirFile( const char *path, const char *file, char *filename )
sprintf( filename, "%s%s%s", path,
( ( path[ strlen( path ) - 1 ] == '/' ) ? "" : "/" ),
ent->d_name );
+ closedir (dir);
return 0;
}
}
+ closedir (dir);
return -1;
}