mirror of
https://github.com/transmission/transmission
synced 2025-01-31 19:34:05 +00:00
remove double malloc
This commit is contained in:
parent
0eca8679f8
commit
422fff124c
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue