diff options
author | Volker Lendecke <vl@samba.org> | 2008-07-02 12:22:15 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-07-02 13:34:09 +0200 |
commit | ab57861686e90d1639f9836d964d8a642c644953 (patch) | |
tree | 3569e6974507df7d546fb8cd37e3c6d93ac2a58f /source3/winbindd | |
parent | 065760ede0b4d785adf8a5dcdd9237a494b4876a (diff) | |
download | samba-ab57861686e90d1639f9836d964d8a642c644953.tar.gz samba-ab57861686e90d1639f9836d964d8a642c644953.tar.bz2 samba-ab57861686e90d1639f9836d964d8a642c644953.zip |
Fix two memory leaks in an error path in idmap.c
(This used to be commit 7cec389e19323e99b6b6258e539be9d1fd65810f)
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 8b16f27f7d..c056596470 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -154,6 +154,7 @@ 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; @@ -207,6 +208,7 @@ 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; |