+3
−0
Loading
If _allocate_vol_requests() failed, the caller will call _init_load_cleanup() to free memory that _allocate_vol_requests() already freed, and cause segment fault. Setting pointer to NULL keeps _init_load_cleanup() is safe to free it again. Change-Id: I9ad09eabf6b65350f174bd5a4faf5ee643cbd23f Signed-off-by:wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-on: https://review.gerrithub.io/437292 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>