plug memory leak.

This commit is contained in:
Axel Kohlmeyer
2015-10-14 21:55:32 -04:00
parent 373c7faf5d
commit f3045e4086

View File

@ -60,6 +60,8 @@ char Read_Force_Field( FILE *fp, reax_interaction *reax,
if (n < 1) {
fprintf( stderr, "WARNING: number of globals in ffield file is 0!\n" );
fclose(fp);
free(s);
free(tmp);
return 1;
}