Fix a memory leak in x509write test suite
This leak wasn't discovered by the CI because the only test in all.sh exercising the respective path enabled the custom memory buffer allocator implementations of calloc() and free(), hence bypassing ASan.
This commit is contained in:
parent
0163551aa0
commit
2fcdd7446e
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ static int x509_crt_verifycsr( const unsigned char *buf, size_t buflen )
|
|||
return( MBEDTLS_ERR_X509_CERT_VERIFY_FAILED );
|
||||
}
|
||||
|
||||
mbedtls_x509_csr_free( &csr );
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||
|
|
Loading…
Reference in a new issue