AMBER Archive (2009)

Subject: [AMBER] nasty memory bug in calculatePrincipalAxis

From: Hannes Loeffler (hannes.loeffler_at_stfc.ac.uk)
Date: Mon Jul 20 2009 - 03:30:38 CDT


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_at_ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber