From f45914cd991f1852d652a4e7b95c410150b67bea Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 24 Oct 2022 13:00:46 +0200 Subject: [PATCH] classification: avoid duplicate errors --- src/util-classification-config.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util-classification-config.c b/src/util-classification-config.c index cafa1c7165..669338e1a6 100644 --- a/src/util-classification-config.c +++ b/src/util-classification-config.c @@ -397,9 +397,7 @@ static SCClassConfClasstype *SCClassConfAllocClasstype(uint16_t classtype_id, return NULL; memset(ct, 0, sizeof(SCClassConfClasstype)); - if ( (ct->classtype = SCClassConfStringToLowercase(classtype)) == NULL) { - SCLogError(SC_ERR_MEM_ALLOC, "Error allocating memory"); - + if ((ct->classtype = SCClassConfStringToLowercase(classtype)) == NULL) { SCClassConfDeAllocClasstype(ct); return NULL; }