summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-09-26 01:34:22 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-09-26 01:34:22 +0200
commit390cd90c8f0004136290e9e67d0e27f0ac00fe2c (patch)
treefad2f6d1b2f4269e785a16b3e250fe806381c0d1 /pidl
parent9a9202e7bdd2e20e6a4aa719515438271ef82c75 (diff)
downloadsamba-390cd90c8f0004136290e9e67d0e27f0ac00fe2c.tar.gz
samba-390cd90c8f0004136290e9e67d0e27f0ac00fe2c.tar.bz2
samba-390cd90c8f0004136290e9e67d0e27f0ac00fe2c.zip
pidl(s4.python): Fix arguments to PyCObject_FromVoidPtr for string_array's.
Caught by Guenther.
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 3baaa67655..eb8bd31873 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -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)";