1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00
This commit is contained in:
Charles Kerr 2008-10-14 04:51:42 +00:00
parent 53339a1498
commit c2ddf1b2fe

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 */