Commit 4eda4fd2 authored by Ben Walker's avatar Ben Walker
Browse files

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: default avatarBen Walker <benjamin.walker@intel.com>
parent 4a3182b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}

+0 −1
Original line number Diff line number Diff line
@@ -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;
	}