Re: [AMBER-Developers] malloc error when freeing pointer in CVS ptraj

From: Ben Roberts <roberts.qtp.ufl.edu>
Date: Tue, 16 Mar 2010 16:43:25 -0400

Hi Dan,

Thanks for that. The patch seems to work.

Does something similar need to be done for the other mask?

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
Received on Tue Mar 16 2010 - 14:00:04 PDT
Custom Search