summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-11-08 21:40:52 +0000
committerjsing <jsing@openbsd.org>2018-11-08 21:40:52 +0000
commit66139502028f6eed3515668734c8d4b0ee25a514 (patch)
tree0615310c145f5f3d5582fb2ae5146c9f721f6478
parentUse ASN1_TYPE_new()/ASN1_TYPE_free() to avoid leaking memory. (diff)
downloadwireguard-openbsd-66139502028f6eed3515668734c8d4b0ee25a514.tar.xz
wireguard-openbsd-66139502028f6eed3515668734c8d4b0ee25a514.zip
Add missing BN_free() calls.
From Ben L <bobsayshilol at live dot co dot uk>.
-rw-r--r--regress/lib/libcrypto/exp/exptest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/exp/exptest.c b/regress/lib/libcrypto/exp/exptest.c
index 9c683464f6b..abed6adb70c 100644
--- a/regress/lib/libcrypto/exp/exptest.c
+++ b/regress/lib/libcrypto/exp/exptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exptest.c,v 1.5 2018/07/17 17:06:49 tb Exp $ */
+/* $OpenBSD: exptest.c,v 1.6 2018/11/08 21:40:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -329,6 +329,8 @@ int main(int argc, char *argv[])
}
BN_free(r_mont);
BN_free(r_mont_const);
+ BN_free(r_mont_ct);
+ BN_free(r_mont_nonct);
BN_free(r_recp);
BN_free(r_simple);
BN_free(a);