FIx memory leak in x509_attr_descr_from_numericoid;

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
Agathiyan Bragadeesh 2023-08-03 14:37:50 +01:00
parent a1f5c2d06f
commit f818e01edb

View File

@ -150,6 +150,7 @@ static const x509_attr_descriptor_t *x509_attr_descr_from_numericoid(const char
}
mbedtls_free(oid->p);
mbedtls_free(oid);
if (cur->oid == NULL) {
return NULL;
}