On Tue, Mar 16, 2010 at 4:43 PM, Ben Roberts <roberts.qtp.ufl.edu> wrote:
> Hi Dan,
>
> Thanks for that. The patch seems to work.
>
> Does something similar need to be done for the other mask?
>
The free for buffer is ok since it always has something allocated, and
otherwise everything should be ok as far as I can tell. However I have a
feeling lots of similar things are going to be necessary. I've been trying
to track down as many as I can (I'm doing a semi-major rewrite of ptraj for
AT 1.5) but at this point I think we'll just have to trap these as they get
found. Let me know if you catch any more.
-Dan
>
> Cheers,
> Ben
>
> On 16/3/2010, at 4:19 p.m., Daniel Roe wrote:
>
> > Hi Ben,
> >
> > This has to do with the safe_free function not really being safe. In the
> > case of doing 'solvent byname' an atom mask in the code is not allocated,
> > resulting in the invalid free. The attached patch should fix it. Let me
> know
> > if it doesn't work.
> >
> > -Dan
>
>
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Tue Mar 16 2010 - 14:00:05 PDT