aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c
index 9238555..704a53e 100644
--- a/src/client.c
+++ b/src/client.c
@@ -150,6 +150,8 @@ void MqttClientFree(MqttClient *client)
bdestroy(client->willTopic);
bdestroy(client->willMessage);
bdestroy(client->host);
+ bdestroy(client->userName);
+ bdestroy(client->password);
if (client->stream.sock != -1)
{