Changeset 8448 for trunk/oscam-log.c


Ignore:
Timestamp:
03/01/13 13:33:05 (9 years ago)
Author:
gf
Message:

log: Free log history on exit.

Make valgrind a little bit happier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-log.c

    r8360 r8448  
    218218
    219219#if defined(WEBIF) || defined(MODULE_MONITOR)
    220     if (loghist && exit_oscam != 1) {
     220    if (loghist && !exit_oscam) {
    221221        char *usrtxt = log->cl_text;
    222222        char *target_ptr = NULL;
     
    378378}
    379379
    380 void cs_close_log(void)
     380static void cs_close_log(void)
    381381{
    382382    //Wait for log close:
     
    632632}
    633633
     634void log_free(void) {
     635    cs_close_log();
     636#if defined(WEBIF) || defined(MODULE_MONITOR)
     637    free(loghist);
     638    loghist = loghistptr = NULL;
     639#endif
     640}
Note: See TracChangeset for help on using the changeset viewer.