mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +00:00
free the info resource if failed
free the info resource if failed
This commit is contained in:
parent
d8dd6f9c75
commit
8541d74793
1 changed files with 2 additions and 0 deletions
|
@ -308,6 +308,8 @@ tr_torrentSetMetadataPiece (tr_torrent * tor, int piece, const void * data, in
|
|||
tr_sessionSetTorrentFile (tor->session, tor->info.hashString, tor->info.torrent);
|
||||
tr_torrentGotNewInfoDict (tor);
|
||||
tr_torrentSetDirty (tor);
|
||||
}else{
|
||||
tr_metainfoFree(&info);
|
||||
}
|
||||
|
||||
tr_variantFree (&newMetainfo);
|
||||
|
|
Loading…
Reference in a new issue