summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/t_encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/t_encrypt.c')
-rw-r--r--src/lib/crypto/t_encrypt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/crypto/t_encrypt.c b/src/lib/crypto/t_encrypt.c
index db20210c38..a52c22659a 100644
--- a/src/lib/crypto/t_encrypt.c
+++ b/src/lib/crypto/t_encrypt.c
@@ -95,7 +95,14 @@ main ()
krb5_c_decrypt (context, &key, 7, 0, &enc_out, &check));
test ("free_state",
krb5_c_free_state (context, &key, &state));
+ if(key.contents) {
+ free(key.contents);
+ key.contents = NULL;
+ }
}
+
+ free(out.data);
+ free(check.data);
return 0;
}