From 831773b2206d3d8e81bd7513f6edfea3a10893cc Mon Sep 17 00:00:00 2001 From: Anil Veerabhadrappa Date: Thu, 27 Apr 2023 18:59:53 -0400 Subject: [PATCH] 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 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17836 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/nvmf/fc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/nvmf/fc.c b/lib/nvmf/fc.c index 4407406a7..157700f01 100644 --- a/lib/nvmf/fc.c +++ b/lib/nvmf/fc.c @@ -3663,7 +3663,6 @@ out: SPDK_DEBUGLOG(nvmf_fc_adm_api, "%s", log_str); } - free(args); free(arg); }