summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/a_gentm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/asn1/a_gentm.c')
-rw-r--r--lib/libcrypto/asn1/a_gentm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/a_gentm.c b/lib/libcrypto/asn1/a_gentm.c
index 7f8bc2fef72..e9881943a17 100644
--- a/lib/libcrypto/asn1/a_gentm.c
+++ b/lib/libcrypto/asn1/a_gentm.c
@@ -234,8 +234,7 @@ ASN1_GENERALIZEDTIME_adj_internal(ASN1_GENERALIZEDTIME *s, time_t t,
ERR_R_MALLOC_FAILURE);
return (NULL);
}
- if (s->data != NULL)
- free(s->data);
+ free(s->data);
s->data = (unsigned char *)p;
}