summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorLoganaden Velvindron <logan@cvs.openbsd.org>2014-06-29 18:26:27 +0000
committerLoganaden Velvindron <logan@cvs.openbsd.org>2014-06-29 18:26:27 +0000
commit4badbc4315a9a5659bdb43075052be94821125b5 (patch)
treef82a54501216aa68c93c8290253a7db2638642fd /lib/libssl
parent208824604b32310b86c52e9c73bbb2440f9fbeab (diff)
Free "data" when it's no longer in use.
(Thanks to Brent Cook) OK from jsing@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/apps/dsaparam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/apps/dsaparam.c b/lib/libssl/src/apps/dsaparam.c
index 8d26137e7ee..18e25d1a219 100644
--- a/lib/libssl/src/apps/dsaparam.c
+++ b/lib/libssl/src/apps/dsaparam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsaparam.c,v 1.30 2014/06/28 04:39:41 deraadt Exp $ */
+/* $OpenBSD: dsaparam.c,v 1.31 2014/06/29 18:26:26 logan Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -331,6 +331,7 @@ bad:
printf("\n\t");
printf("0x%02X, ", data[i]);
}
+ free(data);
printf("\n\t};\n\n");
printf("DSA *get_dsa%d()\n\t{\n", bits_p);