1
0
Fork 0
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:
seiyap70 2016-11-07 14:07:56 +08:00 committed by GitHub
parent d8dd6f9c75
commit 8541d74793

View file

@ -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);