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

index 74242b62fc2108f8a414158a66c30a8c1f73d285..7579c9cea81a51cba13a48297afe2c2e374309f5 100644 (file)
@@ -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