svn commit: samba r2344 - in branches/SAMBA_4_0/source/scripting/swig: .

tpot at samba.org tpot at samba.org
Wed Sep 15 12:24:54 GMT 2004


Author: tpot
Date: 2004-09-15 12:24:53 +0000 (Wed, 15 Sep 2004)
New Revision: 2344

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/scripting/swig&rev=2344&nolog=1

Log:
Return PyDict_New() in stub functions instead of Py_None to avoid 
crashing in garbage collector (hmm - all that was required was probably 
a Py_INCREF(Py_None) though).

Modified:
   branches/SAMBA_4_0/source/scripting/swig/dcerpc.i


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/dcerpc.i
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/dcerpc.i	2004-09-15 12:14:47 UTC (rev 2343)
+++ branches/SAMBA_4_0/source/scripting/swig/dcerpc.i	2004-09-15 12:24:53 UTC (rev 2344)
@@ -134,7 +134,7 @@
 
 PyObject *security_descriptor_to_python(struct security_descriptor *obj)
 {
-	return Py_None;
+	return PyDict_New();
 }
 
 struct dom_sid2 *dom_sid2_ptr_from_python(TALLOC_CTX *mem_ctx, PyObject *obj)
@@ -144,7 +144,7 @@
 
 PyObject *dom_sid2_to_python(struct dom_sid2 *obj)
 {
-	return Py_None;
+	return PyDict_New();
 }
 
 char *string_from_python(PyObject *obj)



More information about the samba-cvs mailing list