Merge release-4-5-patches into release-4-6
[alexxy/gromacs.git] / src / gmxlib / pdbio.c
index d134f62860106c8bc078ca06a5eb5b5cc2a930bf..5eae96422b517c3fe3ebe5adba45f060d4ee95dd 100644 (file)
@@ -361,6 +361,8 @@ void write_pdbfile_indexed(FILE *out,const char *title,
       fprintf(out,"CONECT%5d%5d\n",gc->conect[i].ai+1,gc->conect[i].aj+1);
     }
   }
+
+  gmx_residuetype_destroy(rt);
 }
 
 void write_pdbfile(FILE *out,const char *title, t_atoms *atoms,rvec x[],
@@ -503,6 +505,7 @@ static int read_atom(t_symtab *symtab,
   for(k=0; (k<4); k++,j++) anm[k]=line[j];
   anm[k]=nc;
   strcpy(anm_copy,anm);
+  rtrim(anm_copy);
   atomnumber = NOTSET;
   trim(anm);
   altloc=line[j];