diff options
Diffstat (limited to 'third_party/nix/src/nix-env/user-env.cc')
-rw-r--r-- | third_party/nix/src/nix-env/user-env.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix-env/user-env.cc b/third_party/nix/src/nix-env/user-env.cc index 0cb921c8249d..dac0c52a81b7 100644 --- a/third_party/nix/src/nix-env/user-env.cc +++ b/third_party/nix/src/nix-env/user-env.cc @@ -20,8 +20,8 @@ DrvInfos queryInstalled(EvalState& state, const Path& userEnv) { if (pathExists(manifestFile)) { Value v; state.evalFile(manifestFile, v); - Bindings& bindings(*Bindings::NewGC()); - getDerivations(state, v, "", bindings, elems, false); + std::unique_ptr<Bindings> bindings(Bindings::New()); + getDerivations(state, v, "", bindings.get(), elems, false); } return elems; } |