mirror of
https://github.com/transmission/transmission
synced 2025-01-04 05:56:02 +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_sessionSetTorrentFile (tor->session, tor->info.hashString, tor->info.torrent);
|
||||||
tr_torrentGotNewInfoDict (tor);
|
tr_torrentGotNewInfoDict (tor);
|
||||||
tr_torrentSetDirty (tor);
|
tr_torrentSetDirty (tor);
|
||||||
|
}else{
|
||||||
|
tr_metainfoFree(&info);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr_variantFree (&newMetainfo);
|
tr_variantFree (&newMetainfo);
|
||||||
|
|
Loading…
Reference in a new issue