From: Victor Julien Date: Wed, 31 May 2017 09:28:50 +0000 (+0200) Subject: unix-socket: fix minor memleak X-Git-Tag: suricata-4.0.0-beta1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75edfcc2cdda33f1f866b83ceead24f2f99a885b;p=thirdparty%2Fsuricata.git unix-socket: fix minor memleak --- 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;