mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-18 16:33:01 +00:00
Fix memory leak in GCM by adding gcm_free()
This commit is contained in:
@@ -197,6 +197,13 @@ int gcm_finish( gcm_context *ctx,
|
||||
unsigned char *tag,
|
||||
size_t tag_len );
|
||||
|
||||
/**
|
||||
* \brief Free a GCM context and underlying cipher sub-context
|
||||
*
|
||||
* \param ctx
|
||||
*/
|
||||
void gcm_free( gcm_context *ctx );
|
||||
|
||||
/**
|
||||
* \brief Checkup routine
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user