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:
Jim Harris 2017-03-24 14:42:18 -07:00 committed by Daniel Verkamp
parent e5b62c126a
commit f2e4d641a5

View File

@ -305,6 +305,7 @@ init_cb(void *ctx, struct spdk_blob_store *bs, int bserrno)
common_fs_bs_init(fs, bs);
} else {
free(fs);
fs = NULL;
}
args->fn.fs_op_with_handle(args->arg, fs, bserrno);