Fix typo in check_clones()
Run kmem_free() after zap_cursor_fini(). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Adam Moss <c@yotes.com> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes #14702
This commit is contained in:
parent
8ab674ab9c
commit
a8a127e2c9
|
@ -470,9 +470,9 @@ static int check_clones(spa_t *spa, uint64_t zap_clone, uint64_t snap_count,
|
|||
break;
|
||||
}
|
||||
|
||||
zap_cursor_fini(zc);
|
||||
kmem_free(za, sizeof (*za));
|
||||
kmem_free(zc, sizeof (*zc));
|
||||
zap_cursor_fini(zc);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue