1
0
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:
Jelmer Vernooij
2010-09-22 16:44:17 -07:00
parent 5b10c82a58
commit 1c3c9a483b
7 changed files with 111 additions and 25 deletions

View File

@ -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) {