From bc800175d1713efacf69567de60138ee7f1025e7 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 17 Sep 2021 09:26:18 +0200 Subject: [PATCH] Fixed proper reset ov member variable to NULL --- libfreerdp/core/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/peer.c b/libfreerdp/core/peer.c index 99348ac12..49927fb28 100644 --- a/libfreerdp/core/peer.c +++ b/libfreerdp/core/peer.c @@ -981,8 +981,8 @@ void freerdp_peer_context_free(freerdp_peer* client) metrics_free(ctx->metrics); ctx->metrics = NULL; free(ctx); - ctx = NULL; } + client->context = NULL; } freerdp_peer* freerdp_peer_new(int sockfd)