From: Bodo Möller Date: Tue, 13 Mar 2001 07:03:39 +0000 (+0000) Subject: Use err_clear_data macro X-Git-Tag: OpenSSL_0_9_6a-beta1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b670b1e3dad9991179cc9e663995f2ca6e0a75e3;p=oweals%2Fopenssl.git Use err_clear_data macro --- 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