Skip to content

Commit

Permalink
output-packet: fix memleak
Browse files Browse the repository at this point in the history
This fixes:

Direct leak of 31832 byte(s) in 3979 object(s) allocated from:
    #0 0x4c396b in malloc (/opt/suricata-asan/bin/suricata+0x4c396b)
    #1 0xe22129 in OutputPacketLogThreadInit /home/pmanev/sandnet-qa/stage/oisf/src/output-packet.c:123:34
    #2 0x106c255 in TmThreadsSlotPktAcqLoop /home/pmanev/sandnet-qa/stage/oisf/src/tm-threads.c:295:17
    #3 0x7fbc9fcb3181 in start_thread /build/eglibc-3GlaMS/eglibc-2.19/nptl/pthread_create.c:312
  • Loading branch information
regit committed Mar 6, 2016
1 parent 368c9e4 commit ef8b0eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/output-packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ static TmEcode OutputPacketLogThreadDeinit(ThreadVars *tv, void *thread_data)

logger = logger->next;
}

SCFree(op_thread_data);
return TM_ECODE_OK;
}

Expand Down

0 comments on commit ef8b0eb

Please sign in to comment.