From 6dee7b11aea398e94580db1d0c01779f5f574142 Mon Sep 17 00:00:00 2001 From: markus Date: Mon, 5 May 2014 18:56:42 +0000 Subject: [PATCH] ca_x509_serialize: don't leak the bio buffer; ok reyk@ --- sbin/iked/ca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index d6076f561fc..cb20531c71b 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.28 2014/05/05 18:54:17 markus Exp $ */ +/* $OpenBSD: ca.c,v 1.29 2014/05/05 18:56:42 markus Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -784,6 +784,7 @@ ca_x509_serialize(X509 *x509) len = BIO_get_mem_data(out, &d); buf = ibuf_new(d, len); + BIO_free(out); return (buf); } -- 2.20.1