talloc: pytalloc should not depend on samba specific code
authorStefan Metzmacher <metze@samba.org>
Sun, 24 Oct 2010 17:52:01 +0000 (19:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 24 Oct 2010 19:21:25 +0000 (19:21 +0000)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Oct 24 19:21:25 UTC 2010 on sn-devel-104

lib/talloc/pytalloc.c

index ae59b6962594088b4e5ccf3dd6b471bd4c1e7135..d5ef919bb2aa75ad6e1950b646735d83d2c000e7 100644 (file)
@@ -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);
 }