Changeset 14366


Ignore:
Timestamp:
Dec 7, 2014, 10:42:12 AM (8 years ago)
Author:
mikedld
Message:

Fix small memory leaks in crypto (base64) and rename (multi-file torrent) unit tests

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r14359 r14366  
    203203  check_int_eq (0, len);
    204204  check_streq ("", out);
     205  tr_free (out);
    205206  out = tr_base64_decode ("", 0, &len);
    206207  check_int_eq (0, len);
    207208  check_streq ("", out);
     209  tr_free (out);
    208210
    209211  out = tr_base64_encode (NULL, 0, &len);
    210212  check_int_eq (0, len);
    211213  check (out == NULL);
     214  tr_free (out);
    212215  out = tr_base64_decode (NULL, 0, &len);
    213216  check_int_eq (0, len);
    214217  check (out == NULL);
     218  tr_free (out);
    215219
    216220#define MAX_BUF_SIZE 1024
  • trunk/libtransmission/rename-test.c

    r14359 r14366  
    442442  **/
    443443
     444  tr_ctorFree (ctor);
    444445  tr_torrentRemove (tor, false, NULL);
    445446  do {
Note: See TracChangeset for help on using the changeset viewer.