From: job Date: Tue, 6 Sep 2022 11:16:51 +0000 (+0000) Subject: Properly free memory in filemode X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b80179001d0d3094b867cbb98ba33b8e58f6e497;p=openbsd Properly free memory in filemode OK tb@ --- diff --git a/usr.sbin/rpki-client/filemode.c b/usr.sbin/rpki-client/filemode.c index 5ebb6e00d9e..d26ea22e075 100644 --- a/usr.sbin/rpki-client/filemode.c +++ b/usr.sbin/rpki-client/filemode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filemode.c,v 1.13 2022/08/30 18:56:49 job Exp $ */ +/* $OpenBSD: filemode.c,v 1.14 2022/09/06 11:16:51 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -593,8 +593,11 @@ proc_filemode(int fd) entity_free(entp); } - /* XXX free auths and crl tree */ + auth_tree_free(&auths); + crl_tree_free(&crlt); + X509_STORE_CTX_free(ctx); + ibuf_free(inbuf); exit(0); }