summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-10-06 14:23:09 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-10-06 14:23:09 +0000
commit0280c7580ac5506160b800a33bb2b9463d2dd71e (patch)
tree14a02cb3fcca80f8e7aefda39690c40cd7f76411
parent961f3c2701919bc3c6a8d76908ef5c0ea58cb25b (diff)
plug a memory leak
-rw-r--r--regress/lib/libcrypto/wycheproof/wycheproof.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/wycheproof/wycheproof.go b/regress/lib/libcrypto/wycheproof/wycheproof.go
index 1887a1b73c4..7ec02a8f32d 100644
--- a/regress/lib/libcrypto/wycheproof/wycheproof.go
+++ b/regress/lib/libcrypto/wycheproof/wycheproof.go
@@ -1,4 +1,4 @@
-/* $OpenBSD: wycheproof.go,v 1.78 2018/10/06 11:05:00 tb Exp $ */
+/* $OpenBSD: wycheproof.go,v 1.79 2018/10/06 14:23:08 tb Exp $ */
/*
* Copyright (c) 2018 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -1207,6 +1207,7 @@ func runDSATestGroup(algorithm string, wtg *wycheproofTestGroupDSA) bool {
if bio == nil {
log.Fatal("BIO_new_mem_buf failed")
}
+ defer C.free(unsafe.Pointer(keyPEM))
defer C.BIO_free(bio)
dsaPEM := C.PEM_read_bio_DSA_PUBKEY(bio, nil, nil, nil)