[AMBER] nasty memory bug in calculatePrincipalAxis

From: Hannes Loeffler <hannes.loeffler.stfc.ac.uk>
Date: Mon, 20 Jul 2009 09:30:38 +0100

Hi,

I just wanted to report a nasty memory bug in calculatePrincipalAxis.
The function allocates memory for amass as
amass = safe_malloc(sizeof(double) * state->atoms);

but this memory never gets freed up! With a large trajectory this may
lead to consumption of all memory.

Cheers,
Hannes.


_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Jul 20 2009 - 10:07:09 PDT
Custom Search