mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
Merge pull request #11553 from NixOS/mergify/bp/2.24-maintenance/pr-11548
Fix missing GC root in zipAttrsWith (backport #11548)
This commit is contained in:
commit
b5154deba3
1 changed files with 4 additions and 0 deletions
|
@ -3136,7 +3136,11 @@ static void prim_zipAttrsWith(EvalState & state, const PosIdx pos, Value * * arg
|
||||||
std::optional<ListBuilder> list;
|
std::optional<ListBuilder> list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if HAVE_BOEHMGC
|
||||||
|
std::map<Symbol, Item, std::less<Symbol>, traceable_allocator<std::pair<const Symbol, Item>>> attrsSeen;
|
||||||
|
#else
|
||||||
std::map<Symbol, Item> attrsSeen;
|
std::map<Symbol, Item> attrsSeen;
|
||||||
|
#endif
|
||||||
|
|
||||||
state.forceFunction(*args[0], pos, "while evaluating the first argument passed to builtins.zipAttrsWith");
|
state.forceFunction(*args[0], pos, "while evaluating the first argument passed to builtins.zipAttrsWith");
|
||||||
state.forceList(*args[1], pos, "while evaluating the second argument passed to builtins.zipAttrsWith");
|
state.forceList(*args[1], pos, "while evaluating the second argument passed to builtins.zipAttrsWith");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue