summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-02-13 16:48:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:06 -0500
commit3b67210eec560d0c79b625ac11acb940e29fe8e0 (patch)
tree71e4baa3cebf0aef029eda364e64bf2b37f93b28
parentf0ed0440c4d3b8736eb5e1ceba8b9257eb29cee3 (diff)
downloadsamba-3b67210eec560d0c79b625ac11acb940e29fe8e0.tar.gz
samba-3b67210eec560d0c79b625ac11acb940e29fe8e0.tar.bz2
samba-3b67210eec560d0c79b625ac11acb940e29fe8e0.zip
r13493: module_name and module_location are the same string. Fix a valgrind
error. Volker (This used to be commit 5a92df31d69ff7b0f2de6564d644949c2906c8f1)
-rw-r--r--source3/passdb/pdb_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 04b2f4ca11..479ce18c05 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/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;