summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-09-28 15:03:17 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-09-28 15:03:17 +0200
commit830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3 (patch)
tree4794e4679b0182932c12e8d7b63789ba5dc1ca7f /pidl/lib/Parse/Pidl
parent5c0edba8c2ade663d630a3b9f3ff0c4862129783 (diff)
downloadsamba-830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3.tar.gz
samba-830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3.tar.bz2
samba-830adcd58d6b1fbc3e693762ab2e8a8cfd7ecab3.zip
pidl: Avoid using talloc_free as function pointer, since it may be a
macro.
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index eb8bd31873..c785619adb 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -998,10 +998,10 @@ sub ConvertScalarToPython($$$)
}
# Not yet supported
- if ($ctypename eq "string_array") { return "PyCObject_FromVoidPtr($cvar, talloc_free)"; }
+ if ($ctypename eq "string_array") { return "PyCObject_FromTallocPtr($cvar)"; }
if ($ctypename eq "ipv4address") { return "PyString_FromString($cvar)"; }
if ($ctypename eq "pointer") {
- return "PyCObject_FromVoidPtr($cvar, talloc_free)";
+ return "PyCObject_FromTallocPtr($cvar)";
}
die("Unknown scalar type $ctypename");