Skip to content

Commit

Permalink
pidl: Use the $mem_ctx helper variable
Browse files Browse the repository at this point in the history
This is already set to pytalloc_get_mem_ctx(py_obj)

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Garming Sam <[email protected]>
  • Loading branch information
abartlet committed Mar 8, 2016
1 parent 9e07f3a commit dffa2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pidl/lib/Parse/Pidl/Samba4/Python.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;");
Expand Down

0 comments on commit dffa2db

Please sign in to comment.