summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_pkey.c')
-rw-r--r--src/lib/libcrypto/asn1/x_pkey.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/x_pkey.c b/src/lib/libcrypto/asn1/x_pkey.c
index a5134bc6a2..d454afb72b 100644
--- a/src/lib/libcrypto/asn1/x_pkey.c
+++ b/src/lib/libcrypto/asn1/x_pkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_pkey.c,v 1.14 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: x_pkey.c,v 1.15 2014/07/12 16:03:36 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -149,10 +149,8 @@ X509_PKEY_free(X509_PKEY *x)
149 149
150 if (x->enc_algor != NULL) 150 if (x->enc_algor != NULL)
151 X509_ALGOR_free(x->enc_algor); 151 X509_ALGOR_free(x->enc_algor);
152 if (x->enc_pkey != NULL) 152 M_ASN1_OCTET_STRING_free(x->enc_pkey);
153 M_ASN1_OCTET_STRING_free(x->enc_pkey); 153 EVP_PKEY_free(x->dec_pkey);
154 if (x->dec_pkey != NULL)
155 EVP_PKEY_free(x->dec_pkey);
156 if ((x->key_data != NULL) && (x->key_free)) 154 if ((x->key_data != NULL) && (x->key_free))
157 free(x->key_data); 155 free(x->key_data);
158 free(x); 156 free(x);