pidl/Python: fix talloc hierachy in FromPythonToUnionFunction()
authorStefan Metzmacher <metze@samba.org>
Tue, 9 May 2017 14:04:18 +0000 (16:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2019 11:48:38 +0000 (12:48 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm

index b313980968765eeec74c209acaa0ba1204898418..70cb7d5eee2bd683429ad444a446388a74ee1b1b 100644 (file)
@@ -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;