commit | 4fe9200f471a5fa47900418eaf41b8f7535dfbc4 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Sep 13 13:45:58 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Sep 13 13:45:58 2013 +0200 |
tree | b65e8507c5c194f9975cf227c4b0b2c281186e3c | |
parent | deb7949a2282866787fc28c187c256606c6c6d3d [diff] |
Fix memory leak in GCM by adding gcm_free()
diff --git a/include/polarssl/gcm.h b/include/polarssl/gcm.h index 1997c4b..4662f97 100644 --- a/include/polarssl/gcm.h +++ b/include/polarssl/gcm.h
@@ -198,6 +198,13 @@ 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 * * \return 0 if successful, or 1 if the test failed