nvmf/fc: delegate memory object free to LLD
'args' object in nvmf_fc_adm_evnt_i_t_delete() is actually allocated in the FC LLD driver and passed to nvmf/fc in nvmf_fc_main_enqueue_event() call. So this object should be freed in the LLD's callback function. Change-Id: I04eb0510ad7dd4bef53fc4e0f299f7226b303748 Signed-off-by: Anil Veerabhadrappa <anil.veerabhadrappa@broadcom.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17836 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
This commit is contained in:
parent
cf69d9af82
commit
bf84d7d814
@ -3663,7 +3663,6 @@ out:
|
||||
SPDK_DEBUGLOG(nvmf_fc_adm_api, "%s", log_str);
|
||||
}
|
||||
|
||||
free(args);
|
||||
free(arg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user