1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 19:34:05 +00:00

remove double malloc

This commit is contained in:
Mitchell Livingston 2007-05-27 23:35:59 +00:00
parent 0eca8679f8
commit 422fff124c

View file

@ -528,10 +528,7 @@ static void invertSlots( tr_io_t * io, int slot1, int slot2 )
io->writeCount += 2;
io->readCount += 2;
buf1 = malloc( inf->pieceSize );
buf2 = malloc( inf->pieceSize );
assert (inf->pieceCount > slot1);
assert (inf->pieceCount > slot1);
assert (inf->pieceCount > slot2);
assert (slot1 != slot2);