From 8024a30d1d12fea2e099cf7fdde654baecd48c05 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 18 Mar 2019 21:57:49 +0000 Subject: [PATCH] Fix potential leak. --- src/websockets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/websockets.c b/src/websockets.c index 137f2e17..047a9ab5 100644 --- a/src/websockets.c +++ b/src/websockets.c @@ -236,6 +236,7 @@ static int callback_mqtt(struct libwebsocket_context *context, if(db->config->connection_messages == true){ log__printf(NULL, MOSQ_LOG_NOTICE, "Client connection from %s denied: max_connections exceeded.", mosq->address); } + mosquitto__free(mosq->address); mosquitto__free(mosq); u->mosq = NULL; return -1;