pidl/python: Remove unnecessary talloc_free().
authorJelmer Vernooij <jelmer@samba.org>
Sun, 13 Jan 2008 20:23:12 +0000 (21:23 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 14 Jan 2008 18:53:05 +0000 (19:53 +0100)
source/pidl/lib/Parse/Pidl/Samba4/Python.pm

index cea388993849b83b325e6565807c0b3be221a5ae..93a6161ce496b7b25d790a27d1ac7de3890b9f5a 100644 (file)
@@ -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("}");