X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FStable.c;h=474134efebf1eed64e777629883a223070dc2c58;hb=f087e1b53f70e41b7cc91ad1b117967710da2288;hp=5cf9c28105406ecf8869a6a4351f299ff70b2210;hpb=32c9a0258c35c5a10216250d5ee0f8c92c519e33;p=ghc-hetmet.git diff --git a/ghc/rts/Stable.c b/ghc/rts/Stable.c index 5cf9c28..474134e 100644 --- a/ghc/rts/Stable.c +++ b/ghc/rts/Stable.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stable.c,v 1.20 2002/04/09 12:56:36 simonmar Exp $ + * $Id: Stable.c,v 1.21 2002/04/24 13:29:01 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -245,7 +245,7 @@ freeStablePtr(StgStablePtr sp) // If this entry has no StableName attached, then just free it // immediately. This is important; it might be a while before the // next major GC which actually collects the entry. - if (sn->sn_obj == NULL) { + if (sn->sn_obj == NULL && sn->ref == 0) { freeStableName(sn); } }