detect: remove code writing unused values

Coveridy ID 1546822 1546823 and 1546824
pull/9535/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 2bf9d0fdf9
commit ad5f41c95c

@ -1289,7 +1289,6 @@ int DetectAddressTestConfVars(void)
}
DetectAddressHeadFree(gh);
gh = NULL;
DetectAddressHeadFree(ghn);
ghn = NULL;
}

@ -1645,8 +1645,6 @@ int CreateGroupedPortList(DetectEngineCtx *de_ctx, DetectPort *port_list, Detect
/* when a group's sigs are added to the joingr, we can free it */
gr->next = NULL;
DetectPortFree(de_ctx, gr);
gr = NULL;
/* append */
} else {
gr->next = NULL;

@ -510,7 +510,6 @@ static int SetupThresholdRule(DetectEngineCtx *de_ctx, uint32_t id, uint32_t gid
if (sm != NULL) {
SigMatchRemoveSMFromList(s, sm, DETECT_SM_LIST_THRESHOLD);
SigMatchFree(de_ctx, sm);
sm = NULL;
}
}

Loading…
Cancel
Save