blob: free the blob in error case

Change-Id: I645e01123949fc4707509d0626f8a5327b7bdd3c
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2017-03-24 10:20:21 +08:00 committed by Jim Harris
parent 3f7f19cb36
commit 66aabffcae

View File

@ -1902,6 +1902,7 @@ spdk_bs_md_delete_blob(struct spdk_blob_store *bs, spdk_blob_id blobid,
seq = spdk_bs_sequence_start(bs->md_channel, &cpl);
if (!seq) {
cb_fn(cb_arg, -ENOMEM);
_spdk_blob_free(blob);
return;
}