From b80179001d0d3094b867cbb98ba33b8e58f6e497 Mon Sep 17 00:00:00 2001 From: job Date: Tue, 6 Sep 2022 11:16:51 +0000 Subject: [PATCH] Properly free memory in filemode OK tb@ --- usr.sbin/rpki-client/filemode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } -- 2.20.1