Fix memory leak in alternative code route

If no oid is found, and x509_attr_descr_from_numericoid returns NULL,
previously the memory allocated for the oid wasn't freed.

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
diff --git a/library/x509_create.c b/library/x509_create.c
index 8ce3584..dd47748 100644
--- a/library/x509_create.c
+++ b/library/x509_create.c
@@ -139,6 +139,8 @@
 
     ret = mbedtls_oid_from_numeric_string(oid, numericoid, numericoid_len);
     if ((ret == MBEDTLS_ERR_X509_ALLOC_FAILED) || (ret == MBEDTLS_ERR_ASN1_INVALID_DATA)) {
+        mbedtls_free(oid->p);
+        mbedtls_free(oid);
         return NULL;
     }