Skip to content

Commit

Permalink
Land #709, Fix memory leak in request_sys_config_sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dledda-r7 committed Sep 13, 2024
2 parents e0499a0 + 4428531 commit eaf37ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit eaf37ad

Please sign in to comment.