diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-10 16:34:53 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-10 17:05:38 +0200 |
commit | 1038a134eddd178635d3c1187cb92a42b884e76f (patch) | |
tree | 11bf93d0836fc706535f73a6c5338147bec0baa3 | |
parent | 27d3bdd36b374b40a9e383262e2e30c813943d7e (diff) | |
download | samba-1038a134eddd178635d3c1187cb92a42b884e76f.tar.gz samba-1038a134eddd178635d3c1187cb92a42b884e76f.tar.bz2 samba-1038a134eddd178635d3c1187cb92a42b884e76f.zip |
libwbclient: Fix a memleak in wbcGetDisplayName
-rw-r--r-- | nsswitch/libwbclient/wbc_sid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c index 091a550bad..5687132427 100644 --- a/nsswitch/libwbclient/wbc_sid.c +++ b/nsswitch/libwbclient/wbc_sid.c @@ -782,6 +782,7 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid, name = talloc_strdup(NULL, pwd->pw_gecos); BAIL_ON_PTR_ERROR(name, wbc_status); + wbcFreeMemory(pwd); } wbc_status = WBC_ERR_SUCCESS; |