Removed possible SEGVs in rmpbc in case ePBC = No.
commitcf5d80b2ff3e8f594105a92359e711eff288a4ea
authorDavid van der Spoel <spoel@leyster.bmc.uu.se>
Thu, 8 Jul 2010 11:58:37 +0000 (8 13:58 +0200)
committerDavid van der Spoel <spoel@leyster.bmc.uu.se>
Thu, 8 Jul 2010 11:58:37 +0000 (8 13:58 +0200)
tree5bb50af23720677fbcc22a13caf691119d007909
parentd872ce7fde146ce4845d7dc0fa7b5358d322c557
Removed possible SEGVs in rmpbc in case ePBC = No.
The code in matio.c made me cry. How about this:
char *line; snew(line,100); line++; sfree(line);
This is nowadays detected by glibc. To avoid drastic changes I removed
the call to free, introducing a memory leak, but this code is used
only in non-critical xpm2ps AFAIK.
src/gmxlib/matio.c
src/gmxlib/rmpbc.c