summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_object.c')
-rw-r--r--src/lib/libcrypto/asn1/a_object.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/a_object.c b/src/lib/libcrypto/asn1/a_object.c
index 551aece6ad..863aa6a226 100644
--- a/src/lib/libcrypto/asn1/a_object.c
+++ b/src/lib/libcrypto/asn1/a_object.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_object.c,v 1.21 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: a_object.c,v 1.22 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 *
@@ -206,15 +206,13 @@ a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num)
206 } 206 }
207 if (tmp != ftmp) 207 if (tmp != ftmp)
208 free(tmp); 208 free(tmp);
209 if (bl) 209 BN_free(bl);
210 BN_free(bl);
211 return (len); 210 return (len);
212 211
213err: 212err:
214 if (tmp != ftmp) 213 if (tmp != ftmp)
215 free(tmp); 214 free(tmp);
216 if (bl) 215 BN_free(bl);
217 BN_free(bl);
218 return (0); 216 return (0);
219} 217}
220 218