mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '2560-cid-329157-dereference-before-null-check-in-lib-dns-journal-c' into 'main'
Resolve "CID 329157: Dereference before null check in lib/dns/journal.c" Closes #2560 See merge request isc-projects/bind9!4779
This commit is contained in:
commit
279c8a837b
1 changed files with 1 additions and 3 deletions
|
|
@ -751,9 +751,7 @@ failure:
|
|||
isc_mem_put(j->mctx, j->index,
|
||||
j->header.index_size * sizeof(journal_pos_t));
|
||||
}
|
||||
if (j->filename != NULL) {
|
||||
isc_mem_free(j->mctx, j->filename);
|
||||
}
|
||||
isc_mem_free(j->mctx, j->filename);
|
||||
if (j->fp != NULL) {
|
||||
(void)isc_stdio_close(j->fp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue