summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-06-10 00:49:37 +0200
committerMichael Adam <obnox@samba.org>2011-06-20 13:46:27 +0200
commitd278eba7841bd8aaefc1970ea08e6aa4e4914ef0 (patch)
treea1e54f22bb51f4d4e9817fe0d92f44fef2b48ec7
parent389eada12d3fb4b305d426baaeddf1a9ccfd781e (diff)
downloadsamba-d278eba7841bd8aaefc1970ea08e6aa4e4914ef0.tar.gz
samba-d278eba7841bd8aaefc1970ea08e6aa4e4914ef0.tar.bz2
samba-d278eba7841bd8aaefc1970ea08e6aa4e4914ef0.zip
s3:idmap_autorid: in initialize, don't leak storedconfig to talloc_tos() in the success case
-rw-r--r--source3/winbindd/idmap_autorid.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index ef6c524f9b..ab533d97f1 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -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;