Use err_clear_data macro
This commit is contained in:
parent
f51cf14b85
commit
d3ee37c5d9
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue