bug report: memory leak on fix_imd.cpp "comm_buf = (void *) memory->smalloc(maxbuf,"imd:comm_buf"); "

Hi,

Version: Lammps-4Jul12

I noticed that a memory leak problem was caused on fix_imd.cpp ,line “comm_buf = (void *) memory->smalloc(maxbuf,“imd:comm_buf”);”. The memory is allocated each in each run but not be released. The usage of memory never stop raising when the below script is run. The process of lammps is down finally.

My input script is pasted in below.

Axel can fix this.

Steve