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:
9ecc6f3
)
libads: Fix 1433611 Resource leak
author
Volker Lendecke
<vl@samba.org>
Wed, 28 Mar 2018 12:00:34 +0000
(07:00 -0500)
committer
Jeremy Allison
<jra@samba.org>
Wed, 28 Mar 2018 22:21:53 +0000
(
00:21
+0200)
Not really a memleak due to the passed-in talloc ctx, but this way it's cleaner
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index 78b813c67d003a63e63b4988ccac4a20fbbd77c0..70166f2f5941f809ef45c7babb8fbc2059fca989 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-3471,6
+3471,7
@@
out:
if (name != NULL) {
ok = (strlen(name) > 0);
}
+ TALLOC_FREE(name);
return ok;
}