summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-11 17:46:09 +0200
committerVolker Lendecke <vl@samba.org>2008-07-11 17:53:26 +0200
commit343c7ff3d2f2125a873692c635f1fddedaecf242 (patch)
tree6525f2af3f2d8797d806688767f0aa0b8cf53dde /source3/winbindd
parent622d36aa41683e122892cd6674279bf52f496e9d (diff)
downloadsamba-343c7ff3d2f2125a873692c635f1fddedaecf242.tar.gz
samba-343c7ff3d2f2125a873692c635f1fddedaecf242.tar.bz2
samba-343c7ff3d2f2125a873692c635f1fddedaecf242.zip
Revert "Fix two memory leaks in an error path in idmap.c"
This reverts commit 7cec389e19323e99b6b6258e539be9d1fd65810f. (This used to be commit d0b34cbb4eba2b6543402af2c9f95407546cefad)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index c056596470..8b16f27f7d 100644
--- 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;