mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s4:ldb.i: hang the dn on the NULL context as the python destructor will free it
This fixes a bug in the ldb.i python wrapper, that showed up under valgrind. Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
f7c53e0add
commit
ced158d250
@ -575,6 +575,8 @@ static void py_ldb_debug(void *context, enum ldb_debug_level level, const char *
|
||||
if (ldif == NULL) {
|
||||
return Py_None;
|
||||
} else {
|
||||
/* We don't want this attached to the 'ldb' any more */
|
||||
talloc_steal(NULL, ldif);
|
||||
return Py_BuildValue((char *)"(iO)", ldif->changetype,
|
||||
SWIG_NewPointerObj(ldif->msg, SWIGTYPE_p_ldb_message, 0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user