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; }