mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
fix oops
This commit is contained in:
parent
53339a1498
commit
c2ddf1b2fe
1 changed files with 3 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue