* DrvInfo contains pointers to expressions, so DrvInfos should be

traced by the garbage collector.  Otherwise "nix-env -u" can crash
  randomly.
This commit is contained in:
Eelco Dolstra 2010-11-25 13:47:34 +00:00
parent 4aced7f8d0
commit 812fae424e

View file

@ -62,7 +62,11 @@ public:
};
#if HAVE_BOEHMGC
typedef list<DrvInfo, traceable_allocator<DrvInfo> > DrvInfos;
#else
typedef list<DrvInfo> DrvInfos;
#endif
/* If value `v' denotes a derivation, store information about the