mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
pidl: Use the $mem_ctx helper variable
This is already set to pytalloc_get_mem_ctx(py_obj) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
9e07f3a13b
commit
dffa2dbfab
@ -224,7 +224,7 @@ sub PythonStruct($$$$$$)
|
||||
if ($l->{TYPE} eq "POINTER" and
|
||||
not ($nl->{TYPE} eq "ARRAY" and ($nl->{IS_FIXED} or is_charset_array($e, $nl))) and
|
||||
not ($nl->{TYPE} eq "DATA" and Parse::Pidl::Typelist::scalar_is_reference($nl->{DATA_TYPE}))) {
|
||||
$self->pidl("talloc_unlink(pytalloc_get_mem_ctx(py_obj), discard_const($varname));");
|
||||
$self->pidl("talloc_unlink($mem_ctx, discard_const($varname));");
|
||||
}
|
||||
$self->ConvertObjectFromPython($env, $mem_ctx, $e, "value", $varname, "return -1;");
|
||||
$self->pidl("return 0;");
|
||||
|
Loading…
x
Reference in New Issue
Block a user