git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622d36a
)
Revert "Fix two memory leaks in an error path in idmap.c"
author
Volker Lendecke
<vl@samba.org>
Fri, 11 Jul 2008 15:46:09 +0000
(17:46 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 11 Jul 2008 15:53:26 +0000
(17:53 +0200)
This reverts commit
7cec389e19323e99b6b6258e539be9d1fd65810f
.
(This used to be commit
d0b34cbb4eba2b6543402af2c9f95407546cefad
)
source3/winbindd/idmap.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap.c
b/source3/winbindd/idmap.c
index c0565964702d2d39d097a1c862d9a3adeee3c1a3..8b16f27f7dac147d36f8a118e37f5abab7aaed25 100644
(file)
--- a/
source3/winbindd/idmap.c
+++ b/
source3/winbindd/idmap.c
@@
-154,7
+154,6
@@
NTSTATUS smb_register_idmap(int version, const char *name,
entry->name = talloc_strdup(idmap_ctx, name);
if ( ! entry->name) {
DEBUG(0,("Out of memory!\n"));
- TALLOC_FREE(entry);
return NT_STATUS_NO_MEMORY;
}
entry->methods = methods;
@@
-208,7
+207,6
@@
NTSTATUS smb_register_idmap_alloc(int version, const char *name,
entry->name = talloc_strdup(idmap_ctx, name);
if ( ! entry->name) {
DEBUG(0,("Out of memory!\n"));
- TALLOC_FREE(entry);
return NT_STATUS_NO_MEMORY;
}
entry->methods = methods;