From 39478450418cc65f6c4f753ffa08dca7f7f7ebeb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 8 Mar 2011 21:53:22 +0100 Subject: idmap-autorid: Slightly simplify idmap_autorid_get_domainrange Signed-off-by: Christian Ambach --- source3/winbindd/idmap_autorid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 437c03800d..434de25171 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -107,13 +107,12 @@ static NTSTATUS idmap_autorid_get_domainrange(struct db_context *db, ret = dbwrap_trans_store_bystring(db, numstr, string_term_tdb_data(sidstr), TDB_INSERT); + talloc_free(numstr); if (!NT_STATUS_IS_OK(ret)) { - talloc_free(numstr); DEBUG(1, ("Fatal error while storing " "new domain->range assignment!\n")); goto error; } - talloc_free(numstr); DEBUG(5, ("Acquired new range #%d for domain %s\n", domainnum, sidstr)); } -- cgit