mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:22:05 -04:00
don't write to freed memory
This commit is contained in:
parent
bb744e24d6
commit
386fef57fa
1 changed files with 1 additions and 1 deletions
|
|
@ -133,8 +133,8 @@ isc_lex_destroy(isc_lex_t **lexp) {
|
|||
isc_lex_close(lex);
|
||||
if (lex->data != NULL)
|
||||
isc_mem_put(lex->mctx, lex->data, lex->max_token + 1);
|
||||
isc_mem_put(lex->mctx, lex, sizeof *lex);
|
||||
lex->magic = 0;
|
||||
isc_mem_put(lex->mctx, lex, sizeof *lex);
|
||||
|
||||
*lexp = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue