From: Jelmer Vernooij Date: Sun, 13 Jan 2008 20:23:12 +0000 (+0100) Subject: pidl/python: Remove unnecessary talloc_free(). X-Git-Tag: samba-4.0.0alpha3~473 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=a099d30067a4d965a283f52e56ffd1897137bf1a;ds=sidebyside pidl/python: Remove unnecessary talloc_free(). --- diff --git a/source/pidl/lib/Parse/Pidl/Samba4/Python.pm b/source/pidl/lib/Parse/Pidl/Samba4/Python.pm index cea38899384..93a6161ce49 100644 --- 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("}");