git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e8ba0
)
pidl/Python: fix talloc hierachy in FromPythonToUnionFunction()
author
Stefan Metzmacher
<metze@samba.org>
Tue, 9 May 2017 14:04:18 +0000
(16:04 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index b313980968765eeec74c209acaa0ba1204898418..70cb7d5eee2bd683429ad444a446388a74ee1b1b 100644
(file)
--- 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;