]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add back mem leak fixes
authorSimo Sorce <idra@samba.org>
Sun, 13 Jul 2008 01:13:44 +0000 (21:13 -0400)
committerSimo Sorce <idra@samba.org>
Sun, 13 Jul 2008 01:40:33 +0000 (21:40 -0400)
source/winbindd/idmap.c

index b793c479697b494a199eb53d1bd4c001a92623b9..1f28c50930a79ae3783418cbe3b89cbee18deb00 100644 (file)
@@ -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;