diff --git a/src/source-pcap.c b/src/source-pcap.c index 0656f95890..1f0c59bd61 100644 --- a/src/source-pcap.c +++ b/src/source-pcap.c @@ -554,6 +554,7 @@ TmEcode ReceivePcapThreadInit(ThreadVars *tv, void *initdata, void **data) ptv->livedev = LiveGetDevice(pcapconfig->iface); if (ptv->livedev == NULL) { SCLogError(SC_ERR_INVALID_VALUE, "Unable to find Live device"); + SCFree(ptv); SCReturnInt(TM_ECODE_FAILED); }