mirror of
https://github.com/samba-team/samba.git
synced 2025-07-09 20:59:11 +03:00
s4-param: Fix more memory leaks, invalid memory context.
This commit is contained in:
@ -131,6 +131,10 @@ static PyObject *py_interface_ips(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
|
||||
tmp_ctx = talloc_new(NULL);
|
||||
if (tmp_ctx == NULL) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
lp_ctx = lpcfg_from_py_object(tmp_ctx, py_lp_ctx);
|
||||
if (lp_ctx == NULL) {
|
||||
|
@ -1491,7 +1491,6 @@ def provision(setup_dir, logger, session_info,
|
||||
lp=lp)
|
||||
share_ldb.load_ldif_file_add(setup_path("share.ldif"))
|
||||
|
||||
|
||||
logger.info("Setting up secrets.ldb")
|
||||
secrets_ldb = setup_secretsdb(paths.secrets, setup_path,
|
||||
session_info=session_info,
|
||||
@ -1623,7 +1622,7 @@ def provision(setup_dir, logger, session_info,
|
||||
|
||||
provision_backend.post_setup()
|
||||
provision_backend.shutdown()
|
||||
|
||||
|
||||
create_phpldapadmin_config(paths.phpldapadminconfig, setup_path,
|
||||
ldapi_url)
|
||||
except:
|
||||
|
Reference in New Issue
Block a user