From 9598b4272312fc9b55154e675c1adb3a21b491b3 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Fri, 30 May 2014 02:52:11 +0000 Subject: no need for null check before free. from Brendan MacDonell --- src/lib/libcrypto/asn1/asn1_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/libcrypto/asn1/asn1_lib.c') diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index c2f0837a1c..b28cdc56cf 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c @@ -401,8 +401,7 @@ ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len) void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len) { - if (str->data) - free(str->data); + free(str->data); str->data = data; str->length = len; } -- cgit v1.2.3-55-g6feb