blob: 19a6b4a3998bc18fa3333ecd291d731cb35576c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ac,v 1.1 2007/01/09 14:44:11 drochner Exp $
--- src/dvdread/dvd_reader.c.orig 2007-01-09 00:15:00.000000000 +0100
+++ src/dvdread/dvd_reader.c
@@ -585,10 +585,12 @@ static int findDirFile( const char *path
sprintf( filename, "%s%s%s", path,
( ( path[ strlen( path ) - 1 ] == '/' ) ? "" : "/" ),
ent->d_name );
+ closedir( dir );
return 0;
}
}
+ closedir( dir );
return -1;
}
|