# HG changeset patch # User nicodvb # Date 1208600857 0 # Node ID eea1e72ea1ddec200f298ae1f67f1c6b698deb9d # Parent d0bfcfa565b0557f5862353059a84effbf89933c in DVDDiscID() call DVDCloseFile() before exiting with an error ; patch by Erik Hovland - erik hovland org diff -r d0bfcfa565b0 -r eea1e72ea1dd dvdread/dvd_reader.c --- a/dvdread/dvd_reader.c Sat Apr 19 10:11:36 2008 +0000 +++ b/dvdread/dvd_reader.c Sat Apr 19 10:27:37 2008 +0000 @@ -1117,6 +1117,7 @@ char *buffer = (unsigned char *)(((uintptr_t)buffer_base & ~((uintptr_t)2047)) + 2048); if( buffer_base == NULL ) { + DVDCloseFile( dvd_file ); fprintf( stderr, "libdvdread: DVDDiscId, failed to " "allocate memory for file read!\n" ); return -1;