mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/ldb: Test correct variable for no mem condition
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
5a73f904e1
commit
d786e1fca9
@ -927,7 +927,7 @@ static PyObject *py_ldb_dn_new(PyTypeObject *type, PyObject *args, PyObject *kwa
|
||||
}
|
||||
|
||||
py_ret = (PyLdbDnObject *)type->tp_alloc(type, 0);
|
||||
if (ret == NULL) {
|
||||
if (py_ret == NULL) {
|
||||
talloc_free(mem_ctx);
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user