1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-01 12:35:22 +00:00

Move tr_metainfoFree call higher per review comment

This commit is contained in:
Mike Gelfand 2016-12-09 21:56:22 +03:00
parent b3b1feb744
commit 193d68cc5c

View file

@ -294,6 +294,7 @@ tr_torrentSetMetadataPiece (tr_torrent * tor, int piece, const void * data, in
if (success && !tr_getBlockSize (info.pieceSize))
{
tr_torrentSetLocalError (tor, "%s", _("Magnet torrent's metadata is not usable"));
tr_metainfoFree (&info);
success = false;
}
@ -308,8 +309,6 @@ 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);