git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99cdbe3
)
s3: Fix a memleak reported by dmarkey
author
Volker Lendecke
<vl@samba.org>
Fri, 9 Oct 2009 20:58:14 +0000
(22:58 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 9 Oct 2009 21:00:08 +0000
(23:00 +0200)
nsswitch/libwbclient/wbc_sid.c
patch
|
blob
|
history
diff --git
a/nsswitch/libwbclient/wbc_sid.c
b/nsswitch/libwbclient/wbc_sid.c
index b1ecba3f6d2d121ec5eddf419aabb6bbcb3b3144..99c9d8e1521fa9cd7c51fcddf5b8a2d4fd8342bf 100644
(file)
--- 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;