diff --git a/lib/bdev/split/vbdev_split_rpc.c b/lib/bdev/split/vbdev_split_rpc.c index 8518a0fbe0..452e58f225 100644 --- a/lib/bdev/split/vbdev_split_rpc.c +++ b/lib/bdev/split/vbdev_split_rpc.c @@ -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); }