Fix incorrect free in blob/blobfs
The channel memory isn't allocated by these libraries, so they can't free it. Change-Id: I30909fa4e77bc5a41b45230f04ba5fe75b172dbf Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
4a3182b891
commit
4eda4fd245
@ -1060,7 +1060,6 @@ _spdk_bs_channel_create(void *io_device, uint32_t priority, void *ctx_buf, void
|
||||
channel->req_mem = calloc(spdk_max(bs->max_channel_ops, bs->max_md_ops),
|
||||
sizeof(struct spdk_bs_request_set));
|
||||
if (!channel->req_mem) {
|
||||
free(channel);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,6 @@ _spdk_fs_channel_create(void *io_device, uint32_t priority, void *ctx_buf, void
|
||||
|
||||
channel->req_mem = calloc(max_ops, sizeof(struct spdk_fs_request));
|
||||
if (!channel->req_mem) {
|
||||
free(channel);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user