bdev/nvme: free log_page when freeing discovery ctx
Currently this should be a no-op as the log_page is always freed in discovery_remove_controllers(), but it'll make it easier to handle cases when we want to stop the discovery service while it's attaching NVM controllers. We'll be relying on this in the subsequent patch adding attach timeout to start_discovery(). Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ia03fde92bf5ae5590bca507b7a0f963885d85f4f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12721 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Dong Yi <dongx.yi@intel.com>
This commit is contained in:
parent
622ceb7f07
commit
10dbbf6d8a
@ -4820,6 +4820,7 @@ static void get_discovery_log_page(struct discovery_ctx *ctx);
|
||||
static void
|
||||
free_discovery_ctx(struct discovery_ctx *ctx)
|
||||
{
|
||||
free(ctx->log_page);
|
||||
free(ctx->hostnqn);
|
||||
free(ctx->name);
|
||||
free(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user