git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e7d23
)
pidl/python: Remove unnecessary talloc_free().
author
Jelmer Vernooij
<jelmer@samba.org>
Sun, 13 Jan 2008 20:23:12 +0000
(21:23 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 14 Jan 2008 18:53:05 +0000
(19:53 +0100)
source/pidl/lib/Parse/Pidl/Samba4/Python.pm
patch
|
blob
|
history
diff --git
a/source/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/source/pidl/lib/Parse/Pidl/Samba4/Python.pm
index cea388993849b83b325e6565807c0b3be221a5ae..93a6161ce496b7b25d790a27d1ac7de3890b9f5a 100644
(file)
--- a/
source/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/
source/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@
-196,7
+196,7
@@
sub PythonStruct($$$$)
if ($e->{ORIGINAL}->{POINTERS} > 0) {
$self->pidl("talloc_free($varname);");
}
- $self->ConvertObjectFromPython("mem_ctx", $e->{TYPE}, "value", $varname, "
talloc_free(mem_ctx);
return -1;");
+ $self->ConvertObjectFromPython("mem_ctx", $e->{TYPE}, "value", $varname, "return -1;");
$self->pidl("return 0;");
$self->deindent;
$self->pidl("}");