artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feca9bb
)
Properly free memory in filemode
author
job
<job@openbsd.org>
Tue, 6 Sep 2022 11:16:51 +0000
(11:16 +0000)
committer
job
<job@openbsd.org>
Tue, 6 Sep 2022 11:16:51 +0000
(11:16 +0000)
OK tb@
usr.sbin/rpki-client/filemode.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/filemode.c
b/usr.sbin/rpki-client/filemode.c
index
5ebb6e0
..
d26ea22
100644
(file)
--- a/
usr.sbin/rpki-client/filemode.c
+++ b/
usr.sbin/rpki-client/filemode.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: filemode.c,v 1.1
3 2022/08/30 18:56:49
job Exp $ */
+/* $OpenBSD: filemode.c,v 1.1
4 2022/09/06 11:16:51
job Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@
-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);
}