1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

wbinfo: Fix several memory leaks.

Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andreas Schneider 2013-02-20 09:43:44 +01:00 committed by Alexander Bokovoy
parent d555f6d789
commit 301a3cb4af

View File

@ -243,6 +243,8 @@ static bool wbinfo_get_user_sidinfo(const char *sid_str)
pwd->pw_dir,
pwd->pw_shell);
wbcFreeMemory(pwd);
return true;
}
@ -1227,6 +1229,9 @@ static bool wbinfo_lookupsid(const char *sid_str)
d_printf("%s%c%s %d\n",
domain, winbind_separator(), name, type);
wbcFreeMemory(domain);
wbcFreeMemory(name);
return true;
}
@ -1261,6 +1266,9 @@ static bool wbinfo_lookupsid_fullname(const char *sid_str)
d_printf("%s%c%s %d\n",
domain, winbind_separator(), name, type);
wbcFreeMemory(domain);
wbcFreeMemory(name);
return true;
}