mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix coverity defects: CID 147606, 147609
coverity scan CID:147606, Type:resource leak coverity scan CID:147609, Type:resource leak Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn> Closes #5245
This commit is contained in:
+4
-1
@@ -6281,8 +6281,11 @@ ztest_run(ztest_shared_t *zs)
|
||||
kthread_t *thread;
|
||||
|
||||
if (t < ztest_opts.zo_datasets &&
|
||||
ztest_dataset_open(t) != 0)
|
||||
ztest_dataset_open(t) != 0) {
|
||||
umem_free(tid,
|
||||
ztest_opts.zo_threads * sizeof (kt_did_t));
|
||||
return;
|
||||
}
|
||||
|
||||
VERIFY3P(thread = zk_thread_create(NULL, 0,
|
||||
(thread_func_t)ztest_thread,
|
||||
|
||||
Reference in New Issue
Block a user