1
1
Fork 0
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:
Jörg Thalheim 2025-08-13 21:55:01 +02:00 committed by GitHub
commit 5d3197bb6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),