diff options
Diffstat (limited to 'nsswitch/wbinfo.c')
-rw-r--r-- | nsswitch/wbinfo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index b96b73c2bfa..cd6de34fd5e 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -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; } |