From 75edfcc2cdda33f1f866b83ceead24f2f99a885b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 31 May 2017 11:28:50 +0200 Subject: [PATCH] unix-socket: fix minor memleak --- src/runmode-unix-socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runmode-unix-socket.c b/src/runmode-unix-socket.c index 93494de123..af80816e53 100644 --- a/src/runmode-unix-socket.c +++ b/src/runmode-unix-socket.c @@ -1014,11 +1014,10 @@ TmEcode UnixSocketHostbitList(json_t *cmd, json_t* answer, void *data_unused) */ static int RunModeUnixSocketSingle(void) { - PcapCommand *pcapcmd = SCMalloc(sizeof(PcapCommand)); - if (UnixManagerInit() != 0) return 1; + PcapCommand *pcapcmd = SCMalloc(sizeof(PcapCommand)); if (unlikely(pcapcmd == NULL)) { SCLogError(SC_ERR_MEM_ALLOC, "Can not allocate pcap command"); return 1;