From: Stefan Metzmacher Date: Tue, 9 May 2017 14:04:18 +0000 (+0200) Subject: pidl/Python: fix talloc hierachy in FromPythonToUnionFunction() X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=76667a86adbce16815ec8fb5c59e2ef2ff049e8b pidl/Python: fix talloc hierachy in FromPythonToUnionFunction() Signed-off-by: Stefan Metzmacher --- diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index b31398096876..70cb7d5eee2b 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -179,7 +179,7 @@ sub FromPythonToUnionFunction($$$$$) if ($e->{CASE} eq "default") { $has_default = 1; } $self->indent; if ($e->{NAME}) { - $self->ConvertObjectFromPython({}, $mem_ctx, $e, $name, "ret->$e->{NAME}", "talloc_free(ret); return NULL;"); + $self->ConvertObjectFromPython({}, "ret", $e, $name, "ret->$e->{NAME}", "talloc_free(ret); return NULL;"); } $self->pidl("break;"); $self->deindent;