diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_gentm.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_gentm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_gentm.c b/src/lib/libcrypto/asn1/a_gentm.c index 7f8bc2fef7..e9881943a1 100644 --- a/src/lib/libcrypto/asn1/a_gentm.c +++ b/src/lib/libcrypto/asn1/a_gentm.c | |||
@@ -234,8 +234,7 @@ ASN1_GENERALIZEDTIME_adj_internal(ASN1_GENERALIZEDTIME *s, time_t t, | |||
234 | ERR_R_MALLOC_FAILURE); | 234 | ERR_R_MALLOC_FAILURE); |
235 | return (NULL); | 235 | return (NULL); |
236 | } | 236 | } |
237 | if (s->data != NULL) | 237 | free(s->data); |
238 | free(s->data); | ||
239 | s->data = (unsigned char *)p; | 238 | s->data = (unsigned char *)p; |
240 | } | 239 | } |
241 | 240 | ||