mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
talloc: pytalloc should not depend on samba specific code
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Oct 24 19:21:25 UTC 2010 on sn-devel-104
This commit is contained in:
parent
cbee24b2da
commit
177aad556f
@ -21,8 +21,7 @@
|
||||
#include "replace.h"
|
||||
#include <talloc.h>
|
||||
#include "pytalloc.h"
|
||||
#include "lib/util/debug.h"
|
||||
#include "lib/util/util.h"
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
* Simple dealloc for talloc-wrapping PyObjects
|
||||
@ -30,7 +29,7 @@
|
||||
void py_talloc_dealloc(PyObject* self)
|
||||
{
|
||||
py_talloc_Object *obj = (py_talloc_Object *)self;
|
||||
SMB_ASSERT(talloc_unlink(NULL, obj->talloc_ctx) != -1);
|
||||
assert(talloc_unlink(NULL, obj->talloc_ctx) != -1);
|
||||
obj->talloc_ctx = NULL;
|
||||
self->ob_type->tp_free(self);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user