Changeset 13111


Ignore:
Timestamp:
Dec 14, 2011, 5:44:15 AM (10 years ago)
Author:
jordan
Message:

(trunk libT) fix a minor memory leak in the bencode regression tests.

Found by llvm's static analyzer. This is a minor issue since the leak is in an automated test rather than in shipping code, but it's still better to fix it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode-test.c

    r12391 r13111  
    320320{
    321321    tr_benc top;
    322     struct evbuffer * buf = evbuffer_new( );
    323322    char * serialized;
     323    struct evbuffer * buf;
    324324
    325325    tr_bencLoad( benc_str, strlen( benc_str ), &top, NULL );
Note: See TracChangeset for help on using the changeset viewer.