about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/value.hh
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-09-12T15·09-0700
committerkanepyork <rikingcoding@gmail.com>2020-09-15T21·42+0000
commit2c19bd666280c33eb63d3f3b9063b07b62023c9d (patch)
treed76281f3c93e917dd9fe0c7fae3f219209d2b7c5 /third_party/nix/src/libexpr/value.hh
parent381ce8a66658ac9d02c44e96c860cd05bcb6a5f8 (diff)
refactor(3p/tvix): convert NixList usage to shared_ptr r/1792
Starting to reclaim memory. Fairly simple mechanical replacement.

Change-Id: I6b4c5c5596729470d1a049eba61e69e8097decf4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1971
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to '')
-rw-r--r--third_party/nix/src/libexpr/value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/value.hh b/third_party/nix/src/libexpr/value.hh
index 82360c5668..b5a1a33cba 100644
--- a/third_party/nix/src/libexpr/value.hh
+++ b/third_party/nix/src/libexpr/value.hh
@@ -96,7 +96,7 @@ struct Value {
     NixString string;
     const char* path;
     std::shared_ptr<Bindings> attrs;
-    NixList* list;
+    std::shared_ptr<NixList> list;
     NixThunk thunk;
     NixApp app;  // TODO(tazjin): "app"?
     NixLambda lambda;