rpc: free req before kill() to make asan complain a little bit less

Change-Id: I1c33687d37b2108acbc15ef09902ded194106633
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/405428
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-03-26 21:01:52 +02:00 committed by Jim Harris
parent 83ada529a4
commit 44758678e6

View File

@ -93,8 +93,8 @@ spdk_rpc_kill_instance(struct spdk_jsonrpc_request *request,
}
SPDK_DEBUGLOG(SPDK_LOG_REACTOR, "sending signal %d\n", signals[i].signal);
kill(getpid(), signals[i].signal);
free_rpc_kill_instance(&req);
kill(getpid(), signals[i].signal);
w = spdk_jsonrpc_begin_result(request);
if (w == NULL) {