1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pidl(s4.python): Fix arguments to PyCObject_FromVoidPtr for string_array's.

Caught by Guenther.
This commit is contained in:
Jelmer Vernooij 2009-09-26 01:34:22 +02:00
parent 9a9202e7bd
commit 390cd90c8f

View File

@ -998,7 +998,7 @@ sub ConvertScalarToPython($$$)
}
# Not yet supported
if ($ctypename eq "string_array") { return "PyCObject_FromVoidPtr($cvar)"; }
if ($ctypename eq "string_array") { return "PyCObject_FromVoidPtr($cvar, talloc_free)"; }
if ($ctypename eq "ipv4address") { return "PyString_FromString($cvar)"; }
if ($ctypename eq "pointer") {
return "PyCObject_FromVoidPtr($cvar, talloc_free)";