Reprocess LDB SWIG file.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 19 Dec 2008 22:48:30 +0000 (23:48 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 19 Dec 2008 22:48:30 +0000 (23:48 +0100)
source4/lib/ldb/ldb_wrap.c

index e290b851f381916a2c4f7757418aa8d543a73d02..2055695020e169dac7dfb3788ac4ba97154e5912 100644 (file)
@@ -3067,6 +3067,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));
         }