summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-10-09 22:58:14 +0200
committerVolker Lendecke <vl@samba.org>2009-10-09 23:00:08 +0200
commit5aeb954ba9382e1975c64ac96f1e377ed6af3ae0 (patch)
tree65a251d62c963cb464270bb1914976e28e2a7771
parent99cdbe35717dcd7b8adabae2b8b366dd87357807 (diff)
downloadsamba-5aeb954ba9382e1975c64ac96f1e377ed6af3ae0.tar.gz
samba-5aeb954ba9382e1975c64ac96f1e377ed6af3ae0.tar.bz2
samba-5aeb954ba9382e1975c64ac96f1e377ed6af3ae0.zip
s3: Fix a memleak reported by dmarkey
-rw-r--r--nsswitch/libwbclient/wbc_sid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c
index b1ecba3f6d..99c9d8e152 100644
--- a/nsswitch/libwbclient/wbc_sid.c
+++ b/nsswitch/libwbclient/wbc_sid.c
@@ -248,9 +248,13 @@ wbcErr wbcLookupSid(const struct wbcDomainSid *sid,
if (WBC_ERROR_IS_OK(wbc_status)) {
if (pdomain != NULL) {
*pdomain = domain;
+ } else {
+ TALLOC_FREE(domain);
}
if (pname != NULL) {
*pname = name;
+ } else {
+ TALLOC_FREE(name);
}
if (pname_type != NULL) {
*pname_type = name_type;