Ignore:
Timestamp:
Feb 23, 2010, 7:29:21 AM (12 years ago)
Author:
charles
Message:

(trunk libT) use tr_valloc() in a couple of places where we allocate largish, short-term buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r10239 r10277  
    209209        return ret;
    210210
    211     buf = tr_new( uint8_t, b->pieceSize );
     211    buf = tr_valloc( b->pieceSize );
    212212    b->pieceIndex = 0;
    213213    totalRemain = b->totalSize;
Note: See TracChangeset for help on using the changeset viewer.