[STUBGEN]

Fix resources leak

svn path=/trunk/; revision=53741
This commit is contained in:
Pierre Schweitzer 2011-09-19 07:28:51 +00:00
parent a638c81564
commit 0d50ae47fc

View file

@ -34,7 +34,11 @@ int main( int argc, char **argv ) {
int i, libstart = argc;
FILE *out = fopen("tests/stubs.tst","w");
if( argc == 1 ) { usage(argv[0]); return 1; }
if( argc == 1 ) {
if( out ) fclose( out );
usage(argv[0]);
return 1;
}
if( !out ) {
fprintf( stderr, "Could not write file tests/stubs.tst\n" );