af-packet: should not call free

remotes/origin/master-1.1.x
Eric Leblond 15 years ago
parent 1aab2470db
commit b2c281920f

@ -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 */

Loading…
Cancel
Save