DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
[ira/wip.git] / pidl / lib / Parse / Pidl / Samba4 / Python.pm
index d27192d6ddb76e31399606ed3eec5c67c51604f3..462f8333e1fa629671306c9807cd616562a1080a 100644 (file)
@@ -1030,7 +1030,7 @@ sub ConvertObjectToPythonData($$$$$;$)
                        error($location, "Unable to determine origin of type `" . mapTypeName($ctype) . "'");
                        return "NULL"; # FIXME!
                }
-               return "py_talloc_import_ex($ctype_name, $mem_ctx, $cvar)";
+               return "py_talloc_reference_ex($ctype_name, $mem_ctx, $cvar)";
        }
 
        fatal($location, "unknown type $actual_ctype->{TYPE} for ".mapTypeName($ctype) . ": $cvar");