diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index a11e92edef..2705ff12c5 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -233,14 +233,9 @@ int RunModeIdsAFPAuto(DetectEngineCtx *de_ctx) live_dev); if (ret != 0) { printf("ERROR: Unable to start runmode\n"); - if (live_dev) - SCFree(live_dev); exit(EXIT_FAILURE); } - if (live_dev) - SCFree(live_dev); - SCLogInfo("RunModeIdsAFPAuto initialised"); #endif SCReturnInt(0); @@ -271,14 +266,9 @@ int RunModeIdsAFPAutoFp(DetectEngineCtx *de_ctx) live_dev); if (ret != 0) { printf("ERROR: Unable to start runmode\n"); - if (live_dev) - SCFree(live_dev); exit(EXIT_FAILURE); } - if (live_dev) - SCFree(live_dev); - SCLogInfo("RunModeIdsAFPAutoFp initialised"); #endif /* HAVE_AF_PACKET */