From b670b1e3dad9991179cc9e663995f2ca6e0a75e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Tue, 13 Mar 2001 07:03:39 +0000 Subject: [PATCH] Use err_clear_data macro --- crypto/err/err.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crypto/err/err.c b/crypto/err/err.c index 74242b62fc..7579c9cea8 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -464,10 +464,9 @@ static unsigned long get_error_values(int inc, const char **file, int *line, if (data == NULL) { - if (inc && (es->err_data[i] != NULL) && (es->err_data_flags[i] & ERR_TXT_MALLOCED)) + if (inc) { - OPENSSL_free(es->err_data[i]); - es->err_data[i] = NULL; + err_clear_data(es, i); } } else -- 2.25.1