diff options
author | Andreas Schneider <asn@samba.org> | 2018-08-09 15:53:45 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-08-11 01:49:16 +0200 |
commit | e6689c3e14c2dfaebaf1109f21e53184fea45d41 (patch) | |
tree | 78f2e787809b2b369cc454eda4257f7fb1d26092 /nsswitch | |
parent | bca400847f2fcc3dd1398e166c1964cb88822071 (diff) | |
download | samba-e6689c3e14c2dfaebaf1109f21e53184fea45d41.tar.gz |
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>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/wbinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index 1b58c73602a..c456f6eb329 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -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; } |