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) {
|
||||
|
Reference in New Issue
Block a user