From b1f7b32baa9dbf9a826525241f0446e899b79258 Mon Sep 17 00:00:00 2001 From: Mudit Vats Date: Thu, 11 Feb 2021 10:28:16 -0700 Subject: [PATCH] fix: free fqdn buffer --- commands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.cpp b/commands.cpp index 5db50d7..1b1f7dc 100644 --- a/commands.cpp +++ b/commands.cpp @@ -200,6 +200,7 @@ bool cmd_get_fqdn(fqdn_settings& fqdn_settings) if (fqdn.FQDN.Length > 0) { fqdn_settings.fqdn = std::string(fqdn.FQDN.Buffer, fqdn.FQDN.Length); + free(fqdn.FQDN.Buffer); } return true;