diff --git a/src/runmode-pfring.c b/src/runmode-pfring.c index 9da6c8b747..f625e615ef 100644 --- a/src/runmode-pfring.c +++ b/src/runmode-pfring.c @@ -388,14 +388,9 @@ int RunModeIdsPfringAutoFp(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("RunModeIdsPfringAutoFp initialised"); #endif /* HAVE_PFRING */ @@ -443,14 +438,9 @@ int RunModeIdsPfringSingle(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("RunModeIdsPfringSingle initialised"); #endif /* HAVE_PFRING */