summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2016-05-27 14:27:22 +0000
committerjsing <jsing@openbsd.org>2016-05-27 14:27:22 +0000
commit2c79fa3f4ffde2dd15c2eefd55f9bef070e2f9c0 (patch)
treecb5266b118d3e76e40231225728ca9138938a622
parentFix function parameters that do not have an underscore prefix. (diff)
downloadwireguard-openbsd-2c79fa3f4ffde2dd15c2eefd55f9bef070e2f9c0.tar.xz
wireguard-openbsd-2c79fa3f4ffde2dd15c2eefd55f9bef070e2f9c0.zip
Avoid leaking ca_mem when freeing a tls_config.
-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);