bdev/split: free req in destruct_split_vbdev RPC call

Change-Id: Ia322d630481adab7dc9fdb28a8c90cd869a8f300
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/411085
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-05-14 14:57:43 +02:00 committed by Daniel Verkamp
parent cc9c772379
commit 4e012722ef

View File

@ -130,13 +130,11 @@ spdk_rpc_destruct_split(struct spdk_jsonrpc_request *request,
w = spdk_jsonrpc_begin_result(request);
if (w == NULL) {
return;
goto out;
}
spdk_json_write_bool(w, true);
spdk_jsonrpc_end_result(request, w);
return;
out:
free(req.base_bdev);
}