summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2018-11-10 01:43:03 +0000
committertb <>2018-11-10 01:43:03 +0000
commit76515d9213ee584c533fdad32952607f38e1e2aa (patch)
treeab7f8d36f160133d45e3200d4340d3214172b285 /src
parentc8f3440c00a86b761b35f3891f2f2d7665da6b31 (diff)
downloadopenbsd-76515d9213ee584c533fdad32952607f38e1e2aa.tar.gz
openbsd-76515d9213ee584c533fdad32952607f38e1e2aa.tar.bz2
openbsd-76515d9213ee584c533fdad32952607f38e1e2aa.zip
Fix a leak reported by Ben L bobsayshilol () live ! co ! uk.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/x509/x509name.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/x509name.c b/src/regress/lib/libcrypto/x509/x509name.c
index 4ff8ac6908..c9c96d4ec8 100644
--- a/src/regress/lib/libcrypto/x509/x509name.c
+++ b/src/regress/lib/libcrypto/x509/x509name.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509name.c,v 1.1 2018/04/07 13:54:46 schwarze Exp $ */ 1/* $OpenBSD: x509name.c,v 1.2 2018/11/10 01:43:03 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> 3 * Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org>
4 * 4 *
@@ -55,5 +55,7 @@ main(void)
55 "DE", -1, 0, 1); 55 "DE", -1, 0, 1);
56 debug_print(name); 56 debug_print(name);
57 57
58 X509_NAME_free(name);
59
58 return 0; 60 return 0;
59} 61}