Use err_clear_data macro
authorBodo Möller <bodo@openssl.org>
Tue, 13 Mar 2001 07:02:59 +0000 (07:02 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 13 Mar 2001 07:02:59 +0000 (07:02 +0000)
crypto/err/err.c

index 91b0295..06d1ef9 100644 (file)
@@ -468,10 +468,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