Fix a memory leak in dsl_scan_visitbp().
This should be triggered only if arc_read() fails, i.e., quite rarely. The same logic is already present in OpenZFS. PR: 247445 Submitted by: jdolecek@NetBSD.org MFC after: 1 week
This commit is contained in:
parent
b4fef8d068
commit
17eee3b501
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363373
@ -1789,7 +1789,7 @@ dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb,
|
|||||||
*bp_toread = *bp;
|
*bp_toread = *bp;
|
||||||
|
|
||||||
if (dsl_scan_recurse(scn, ds, ostype, dnp, bp_toread, zb, tx) != 0)
|
if (dsl_scan_recurse(scn, ds, ostype, dnp, bp_toread, zb, tx) != 0)
|
||||||
return;
|
goto out;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If dsl_scan_ddt() has already visited this block, it will have
|
* If dsl_scan_ddt() has already visited this block, it will have
|
||||||
|
Loading…
Reference in New Issue
Block a user