From: tobhe Date: Sun, 7 Feb 2021 00:56:06 +0000 (+0000) Subject: Free X509_STOREs in ca_shutdown(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=068891b8ef563e9836bca70f41ef1980b7009b0b;p=openbsd Free X509_STOREs in ca_shutdown(). --- diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index 38c0e70ed19..be710c7398e 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.76 2021/02/04 19:59:15 tobhe Exp $ */ +/* $OpenBSD: ca.c,v 1.77 2021/02/07 00:56:06 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -131,6 +131,8 @@ ca_shutdown(struct privsep_proc *p) ibuf_release(env->sc_certreq); if ((store = env->sc_priv) == NULL) return; + X509_STORE_free(store->ca_cas); + X509_STORE_free(store->ca_certs); ibuf_release(store->ca_pubkey.id_buf); ibuf_release(store->ca_privkey.id_buf); free(store);