summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-07-12 21:13:44 -0400
committerSimo Sorce <idra@samba.org>2008-07-12 21:40:33 -0400
commiteda1a267e1a70506107100a853884c49978acc01 (patch)
treea8c1ee1ee9a24356b6107382eec1f3339af1c1b4 /source3
parent02e592486fc3130ebd365fe337d8597ebf9071ad (diff)
downloadsamba-eda1a267e1a70506107100a853884c49978acc01.tar.gz
samba-eda1a267e1a70506107100a853884c49978acc01.tar.xz
samba-eda1a267e1a70506107100a853884c49978acc01.zip
Add back mem leak fixes
(This used to be commit 2adea093c5709e128bdde1e37c6a897db7cbc3b1)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index b793c47969..1f28c50930 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -149,11 +149,13 @@ NTSTATUS smb_register_idmap(int version, const char *name,
entry = talloc(idmap_ctx, struct idmap_backend);
if ( ! entry) {
DEBUG(0,("Out of memory!\n"));
+ TALLOC_FREE(entry);
return NT_STATUS_NO_MEMORY;
}
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;