From cc7b80437ac0bb63cdff509f69c94577b52756c8 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 14 Sep 2011 21:36:08 +0200 Subject: [PATCH] pfring: should not call free --- src/runmode-pfring.c | 10 ---------- 1 file changed, 10 deletions(-) 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 */