Free x509 on fail to push

pull/8233/head
Colton Willey 2024-12-04 10:33:58 -08:00
parent c5acceca5d
commit c192cbabe8
1 changed files with 2 additions and 0 deletions

View File

@ -1411,6 +1411,7 @@ int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)
}
else {
result = WOLFSSL_FATAL_ERROR;
wolfSSL_X509_free(x509);
}
}
}
@ -1425,6 +1426,7 @@ int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)
}
else {
result = WOLFSSL_FATAL_ERROR;
wolfSSL_X509_free(x509);
}
}
}