mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Fix memory leak in GCM by adding gcm_free()
This commit is contained in:
parent
deb7949a22
commit
4fe9200f47
4 changed files with 28 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue