Just in case this LDB is given away into the C code, that opaque must live
as long as the LDB itself, not the python wrapper object.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
b = is_true;
}
- opaque = talloc(self->mem_ctx, bool);
+ opaque = talloc(self->ldb_ctx, bool);
if (opaque == NULL) {
return PyErr_NoMemory();
}
return NULL;
}
- opaque = talloc(self->mem_ctx, unsigned long long);
+ opaque = talloc(self->ldb_ctx, unsigned long long);
if (opaque == NULL) {
return PyErr_NoMemory();
}
return NULL;
}
- opaque = talloc_strdup(self->mem_ctx, s);
+ opaque = talloc_strdup(self->ldb_ctx, s);
if (opaque == NULL) {
return PyErr_NoMemory();
}