blobfs: fix use after free in init failure path
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I7709c08abc103023363bede99e06bf07984c04ca
This commit is contained in:
parent
e5b62c126a
commit
f2e4d641a5
@ -305,6 +305,7 @@ init_cb(void *ctx, struct spdk_blob_store *bs, int bserrno)
|
|||||||
common_fs_bs_init(fs, bs);
|
common_fs_bs_init(fs, bs);
|
||||||
} else {
|
} else {
|
||||||
free(fs);
|
free(fs);
|
||||||
|
fs = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
args->fn.fs_op_with_handle(args->arg, fs, bserrno);
|
args->fn.fs_op_with_handle(args->arg, fs, bserrno);
|
||||||
|
Loading…
Reference in New Issue
Block a user