mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Merge pull request #13497 from Mic92/repl-use-after-free-fix
Fix use-after-free warning in repl.cc
This commit is contained in:
commit
5d3197bb6c
1 changed files with 1 additions and 0 deletions
|
|
@ -915,6 +915,7 @@ ReplExitStatus AbstractNixRepl::runSimple(ref<EvalState> evalState, const ValMap
|
||||||
return values;
|
return values;
|
||||||
};
|
};
|
||||||
LookupPath lookupPath = {};
|
LookupPath lookupPath = {};
|
||||||
|
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDelete)
|
||||||
auto repl = std::make_unique<NixRepl>(
|
auto repl = std::make_unique<NixRepl>(
|
||||||
lookupPath,
|
lookupPath,
|
||||||
openStore(),
|
openStore(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue