pcap: should not call free

remotes/origin/master-1.1.x
Eric Leblond 14 years ago
parent 491686c33e
commit 63d614162c

@ -204,14 +204,9 @@ int RunModeIdsPcapAuto(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("RunModeIdsPcapAuto initialised");
SCReturnInt(0);
@ -253,14 +248,9 @@ int RunModeIdsPcapAutoFp(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("RunModeIdsPcapAutoFp initialised");
SCReturnInt(0);

Loading…
Cancel
Save