diff options
-rw-r--r-- | source/passdb/pdb_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c index 04b2f4ca113..479ce18c05c 100644 --- a/source/passdb/pdb_interface.c +++ b/source/passdb/pdb_interface.c @@ -173,14 +173,16 @@ NTSTATUS make_pdb_method_name(struct pdb_methods **methods, const char *selected } DEBUG(5,("Found pdb backend %s\n", module_name)); - SAFE_FREE(module_name); if ( !NT_STATUS_IS_OK( nt_status = entry->init(methods, module_location) ) ) { DEBUG(0,("pdb backend %s did not correctly init (error was %s)\n", selected, nt_errstr(nt_status))); + SAFE_FREE(module_name); return nt_status; } + SAFE_FREE(module_name); + DEBUG(5,("pdb backend %s has a valid init\n", selected)); return nt_status; |