From bd811bdee97a41d6e8ac19afbbcae27c1b0c2d6d Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 30 Mar 2014 13:11:18 -0500 Subject: After free()ing clientData, set it to NULL We will change rfbClientCleanup() to free the data. Signed-off-by: Johannes Schindelin --- test/encodingstest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/encodingstest.c b/test/encodingstest.c index c6c8255..715e887 100644 --- a/test/encodingstest.c +++ b/test/encodingstest.c @@ -172,6 +172,7 @@ static void* clientLoop(void* data) { } free(((clientData*)client->clientData)->display); free(client->clientData); + client->clientData = NULL; if(client->frameBuffer) free(client->frameBuffer); rfbClientCleanup(client); -- cgit v1.2.1