From 442853170137c5b6a204dc5cbfe899a98b732980 Mon Sep 17 00:00:00 2001 From: cod Date: Thu, 1 Aug 2024 10:01:17 +0200 Subject: [PATCH] memory leak in request_sys_config_sysinfo --- .../source/extensions/stdapi/server/sys/config/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/c/meterpreter/source/extensions/stdapi/server/sys/config/config.c b/c/meterpreter/source/extensions/stdapi/server/sys/config/config.c index 0e022fd2f..4cc20db7c 100755 --- a/c/meterpreter/source/extensions/stdapi/server/sys/config/config.c +++ b/c/meterpreter/source/extensions/stdapi/server/sys/config/config.c @@ -776,6 +776,7 @@ DWORD request_sys_config_sysinfo(Remote *remote, Packet *packet) met_api->packet.add_tlv_string(response, TLV_TYPE_DOMAIN, (LPCSTR)domainName); met_api->packet.add_tlv_uint(response, TLV_TYPE_LOGGED_ON_USER_COUNT, localSysinfo->wki102_logged_on_users); free(domainName); + NetApiBufferFree(localSysinfo); } else {