summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_config.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-05-27 14:27:23 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-05-27 14:27:23 +0000
commit1a452229f5204ecbd0fd3f57f18da26ec1ba5d5c (patch)
tree92780d8e25f0b9d7c355aa0cb50811f307ad9fb9 /lib/libtls/tls_config.c
parent8f3d8e037d016161654d8196fa3e2cd96bd24942 (diff)
Avoid leaking ca_mem when freeing a tls_config.
Diffstat (limited to 'lib/libtls/tls_config.c')
-rw-r--r--lib/libtls/tls_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c
index b395337f498..2e8e0490162 100644
--- a/lib/libtls/tls_config.c
+++ b/lib/libtls/tls_config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_config.c,v 1.16 2016/04/28 17:05:59 jsing Exp $ */
+/* $OpenBSD: tls_config.c,v 1.17 2016/05/27 14:27:22 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -167,6 +167,7 @@ tls_config_free(struct tls_config *config)
free(config->error.msg);
free((char *)config->ca_file);
+ free((char *)config->ca_mem);
free((char *)config->ca_path);
free((char *)config->ciphers);