Update of /cvsroot/xine/xine-lib/src/input/libdvdnav
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv8378/src/input/libdvdnav

Modified Files:
        dvd_reader.c 
Log Message:
Don't leak directory handles when reading DVDs or DVD images.
Does not affect access via DVD device or image.

Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/input/libdvdnav/dvd_reader.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- dvd_reader.c        17 Sep 2006 13:01:07 -0000      1.14
+++ dvd_reader.c        13 Dec 2006 20:52:27 -0000      1.15
@@ -603,10 +603,12 @@
             sprintf( filename, "%s%s%s", path,
                      ( ( path[ strlen( path ) - 1 ] == '/' ) ? "" : "/" ),
                      ent->d_name );
+            closedir (dir);
             return 0;
         }
     }
 
+    closedir (dir);
     return -1;
 }
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to