This commit is contained in:
Charles Kerr 2008-10-14 04:51:42 +00:00
parent 53339a1498
commit c2ddf1b2fe
1 changed files with 3 additions and 2 deletions

View File

@ -126,9 +126,10 @@ TrOpenFile( int i,
char * tmp = tr_dirname( filename );
const int err = tr_mkdirp( tmp, 0777 ) ? errno : 0;
tr_free( tmp );
tr_free( filename );
if( err )
if( err ) {
tr_free( filename );
return err;
}
}
/* open the file */