Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!THUMPER.BELLCORE.COM!nsb From: nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) Newsgroups: comp.soft-sys.andrew Subject: Re: Want messages.FwdHeaders preference Message-ID: Date: 10 Apr 91 17:46:05 GMT References: <4c0mQYr0BwwOQE=Yp6@transarc.com> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 13 I think that in this case Adam was right, which is not surprising, and Craig was wrong, which is considerably more unusual. I think that if the "refreshprofile" routine (or something like that) ever gets called, the storage does indeed get reclaimed. Refreshprofile gets called by "setprofilestring" which is called, at least, by the "Set Options" code in Messages. (Craig probably missed this because setprof.c and profile.c are separate files, and he was probably looking only at the latter.) So, the moral is, if you want to keep it around, it might indeed be prudent to make a copy of anything returned by getprofile. This is what the messageserver typically does -- see ams/libs/ms/init.c for examples. -- Nathaniel