Changeset 157 in libcf for trunk/test/log.c


Ignore:
Timestamp:
11/26/13 09:06:48 (10 years ago)
Author:
cheese
Message:

#1 fix memory leakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/log.c

    r151 r157  
    4747
    4848    /* initialize */
     49    /* single thread {{{ */
    4950    if (CF_Log_Create (&globalLog, "log.txt", CF_LOG_NO_BUFFER) < 0)
    5051        CF_DEBUG_PRINT (stderr, "failed to open log\n");
     
    5657            CF_DEBUG_PRINT (stderr, "failed to write log %d\n", result);
    5758    }
     59
     60    CF_Log_Destroy (globalLog);
     61    /* }}} single thread */
    5862
    5963    /* mt {{{ */
Note: See TracChangeset for help on using the changeset viewer.