diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-05-27 14:27:23 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-05-27 14:27:23 +0000 |
commit | 1a452229f5204ecbd0fd3f57f18da26ec1ba5d5c (patch) | |
tree | 92780d8e25f0b9d7c355aa0cb50811f307ad9fb9 /lib/libtls/tls_config.c | |
parent | 8f3d8e037d016161654d8196fa3e2cd96bd24942 (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.c | 3 |
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); |