diff options
author | 2020-09-14 09:29:23 +0000 | |
---|---|---|
committer | 2020-09-14 09:29:23 +0000 | |
commit | ab0f9808f6311c1f1c3907f1b593bb93882c4012 (patch) | |
tree | e6fcb36aa22372054503402deef3dc8a6e031a9d | |
parent | remove unneded variable "time1" (diff) | |
download | wireguard-openbsd-ab0f9808f6311c1f1c3907f1b593bb93882c4012.tar.xz wireguard-openbsd-ab0f9808f6311c1f1c3907f1b593bb93882c4012.zip |
Don't leak names on success
found by llvm static analyzer.
ok tb@
-rw-r--r-- | lib/libcrypto/x509/x509_constraints.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_constraints.c b/lib/libcrypto/x509/x509_constraints.c index ab22cbf8122..1b351c958e5 100644 --- a/lib/libcrypto/x509/x509_constraints.c +++ b/lib/libcrypto/x509/x509_constraints.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_constraints.c,v 1.1 2020/09/11 18:34:29 beck Exp $ */ +/* $OpenBSD: x509_constraints.c,v 1.2 2020/09/14 09:29:23 beck Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -1168,6 +1168,7 @@ x509_constraints_chain(STACK_OF(X509) *chain, int *error, int *depth) } } + x509_constraints_names_free(names); return 1; err: |