Coverity 1038135 fix

Small cleanup in the error handling. The extra null check confused
Coverity.
pull/552/head
Victor Julien 12 years ago
parent 38b6103ff5
commit ecd5c7573b

@ -156,8 +156,7 @@ static SigGroupHead *SigGroupHeadAlloc(DetectEngineCtx *de_ctx, uint32_t size)
return sgh;
error:
if (sgh != NULL)
SigGroupHeadFree(sgh);
SigGroupHeadFree(sgh);
return NULL;
}

Loading…
Cancel
Save