summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2017-05-06 21:22:59 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2017-05-06 21:22:59 +0000
commitd7ed9bacab1fdf6fcbd2cd27e08c8d01e052542d (patch)
tree7ad683196c5d7538938717e3788802188c9b3836 /regress/lib
parent5fa702dd15eb14fea5f5f90fa788c0bbcaadddd5 (diff)
Sort/group functions.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libcrypto/free/freenull.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/regress/lib/libcrypto/free/freenull.c b/regress/lib/libcrypto/free/freenull.c
index 0f37f0725ff..61e320d9992 100644
--- a/regress/lib/libcrypto/free/freenull.c
+++ b/regress/lib/libcrypto/free/freenull.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: freenull.c,v 1.2 2017/05/06 21:21:00 jsing Exp $ */
+/* $OpenBSD: freenull.c,v 1.3 2017/05/06 21:22:58 jsing Exp $ */
/*
* Copyright (c) 2017 Bob Beck <beck@openbsd.org>
*
@@ -27,17 +27,22 @@
int
main(int argc, char **argv)
{
- ASN1_OBJECT_free(NULL);
ASN1_INTEGER_free(NULL);
+ ASN1_OBJECT_free(NULL);
ASN1_OCTET_STRING_free(NULL);
- NAME_CONSTRAINTS_free(NULL);
- GENERAL_SUBTREE_free(NULL);
+
DIST_POINT_free(NULL);
- X509_NAME_ENTRY_free(NULL);
+
GENERAL_NAME_free(NULL);
+ GENERAL_SUBTREE_free(NULL);
+
+ NAME_CONSTRAINTS_free(NULL);
+
sk_GENERAL_NAME_pop_free(NULL, GENERAL_NAME_free);
sk_X509_NAME_ENTRY_pop_free(NULL, X509_NAME_ENTRY_free);
+ X509_NAME_ENTRY_free(NULL);
+
printf("PASS\n");
return (0);