aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-15 18:31:34 -0400
committerFranklin Wei <me@fwei.tk>2018-06-15 18:31:34 -0400
commitd0b708e594f366a4acbd6c2dde638abcdf92c364 (patch)
tree58747cd2a3daaa129b3bb616dbcd21747cca7ab6 /crypto.c
parent30a65725a518dfeebe2f4e16f914fc2c712188fa (diff)
downloadcsaa-d0b708e594f366a4acbd6c2dde638abcdf92c364.zip
csaa-d0b708e594f366a4acbd6c2dde638abcdf92c364.tar.gz
csaa-d0b708e594f366a4acbd6c2dde638abcdf92c364.tar.bz2
csaa-d0b708e594f366a4acbd6c2dde638abcdf92c364.tar.xz
Clean up memory leaks and uninitialized values
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto.c b/crypto.c
index 7e97706..c15330e 100644
--- a/crypto.c
+++ b/crypto.c
@@ -297,9 +297,11 @@ struct iomt *iomt_new(int logleaves)
void iomt_free(struct iomt *tree)
{
- /* TODO */
if(tree)
{
+ free(tree->mt_nodes);
+ free(tree->mt_leaves);
+ free(tree);
}
}