s3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in the succe...
authorMichael Adam <obnox@samba.org>
Thu, 9 Jun 2011 22:49:37 +0000 (00:49 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 20 Jun 2011 11:46:27 +0000 (13:46 +0200)
source3/winbindd/idmap_autorid.c

index ef6c524f9bc187f0fa03382ea53e9ae79d37d142..ab533d97f18b18a843fe784b29b9f908fc354f6b 100644 (file)
@@ -534,10 +534,12 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
                goto error;
        }
 
-       return NT_STATUS_OK;
+       goto done;
 
-      error:
+error:
        talloc_free(config);
+
+done:
        talloc_free(storedconfig);
 
        return status;