Skip to content

Commit

Permalink
Use err_clear_data macro
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Mar 13, 2001
1 parent f51cf14 commit d3ee37c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crypto/err/err.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3ee37c

Please sign in to comment.