mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
wbinfo: Free memory when we leave wbinfo_dsgetdcname()
Found by covscan. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13567 Pair-Programmed-With: Justin Stephenson <jstephen@redhat.com> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
bca400847f
commit
e6689c3e14
@ -747,6 +747,9 @@ static bool wbinfo_dsgetdcname(const char *domain_name, uint32_t flags)
|
||||
d_printf("%s\n", dc_info->dc_site_name);
|
||||
d_printf("%s\n", dc_info->client_site_name);
|
||||
|
||||
wbcFreeMemory(str);
|
||||
wbcFreeMemory(dc_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user