Spdk/lib/vhost
wuzhouhui 33aa994855 vhost: rpc: fix memory leak of spdk_rpc_get_vhost_controllers
spdk_rpc_get_vhost_controllers() forgot to free memory of w when ctx
allocation failed. Defering the invoke of spdk_jsonrpc_begin_result(),
so we can handle the failure conveniently.

Change-Id: I223f5b9a918b068922d5a68c8d688331ebf90e42
Signed-off-by: wuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-on: https://review.gerrithub.io/425358
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2018-09-17 22:12:42 +00:00
..
rte_vhost rte_vhost:rte_vhost_driver_register(): check if strdup succeeds 2018-08-24 03:58:31 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost/blk: fix error path of spdk_vhost_blk_start() 2018-08-23 19:30:57 +00:00
vhost_internal.h vhost: dump interrupt coalescing parameters in RPC info/config 2018-06-15 18:45:14 +00:00
vhost_nvme.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
vhost_rpc.c vhost: rpc: fix memory leak of spdk_rpc_get_vhost_controllers 2018-09-17 22:12:42 +00:00
vhost_scsi.c vhost: show failed taks status 2018-09-12 04:19:46 +00:00
vhost.c vhost: Stop memory leak in external foreach loop 2018-08-31 19:09:07 +00:00