FIx memory leak in x509_attr_descr_from_numericoid;
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
a1f5c2d06f
commit
f818e01edb
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue