]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/vfs.c
it's better to close file and return on non-void function
[xonotic/netradiant.git] / tools / quake3 / common / vfs.c
index 16a78289817b017de067257c6690ada8feed61b8..4e38c9458a3153abedf69689b262e750e4afadff 100644 (file)
@@ -316,6 +316,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
 
                f = fopen( filename, "rb" );
                if ( f == NULL ) {
+                       fclose( f );
                        return -1;
                }