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