aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-18 12:56:50 -0400
committerFranklin Wei <me@fwei.tk>2018-06-18 12:56:50 -0400
commit3a4365ac140bef2cd29b456f530660184a0fd000 (patch)
treeea5a7255c11ddda2f8b51980b6bdd5da3f076da4 /helper.c
parentf7d0c06fe723fe8be799935238136e2a57a40d36 (diff)
downloadcsaa-3a4365ac140bef2cd29b456f530660184a0fd000.zip
csaa-3a4365ac140bef2cd29b456f530660184a0fd000.tar.gz
csaa-3a4365ac140bef2cd29b456f530660184a0fd000.tar.bz2
csaa-3a4365ac140bef2cd29b456f530660184a0fd000.tar.xz
Fix memory leak; also add further test for file retrieval
Diffstat (limited to '')
-rw-r--r--helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/helper.c b/helper.c
index 64785b7..2d4a093 100644
--- a/helper.c
+++ b/helper.c
@@ -5,6 +5,7 @@
* functions to handle the generation of these needed certificates. */
#include <assert.h>
+#include <stdlib.h>
#include "crypto.h"
#include "trusted_module.h"
@@ -83,6 +84,9 @@ struct tm_cert cert_rv_by_idx(const struct trusted_module *tm,
&cert, hmac_out);
}
+ free(comp);
+ free(orders);
+
return cert;
}