summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_init_full.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c
index 5c59c6ba96..f9c982027e 100644
--- a/source3/registry/reg_init_full.c
+++ b/source3/registry/reg_init_full.c
@@ -78,7 +78,7 @@ bool init_registry( void )
if ( !init_registry_data() ) {
DEBUG(0,("regdb_init: Failed to initialize data in registry!\n"));
- return false;
+ goto fail;
}
/* build the cache tree of registry hooks */
@@ -99,12 +99,11 @@ bool init_registry( void )
eventlog_init_keys();
perfcount_init_keys();
- /* close and let each smbd open up as necessary */
-
- regdb_close();
ret = true;
fail:
+ /* close and let each smbd open up as necessary */
+ regdb_close();
TALLOC_FREE(frame);
return ret;
}