correct small bugs found by coverity scan static code analysis

- in fix rigid, rigid/small, and poems, a string argument was
  incorrectly assigned to a %d format
- plug two small memory leaks in fix bond/react
This commit is contained in:
Axel Kohlmeyer
2018-05-11 00:43:09 -04:00
parent 724ade0af3
commit f864584bce
4 changed files with 5 additions and 3 deletions

View File

@ -1155,6 +1155,8 @@ void FixBondReact::make_a_guess()
for (int i = 0; i < atom->ntypes; i++) {
if (mol_ntypes[i] != lcl_ntypes[i]) {
status = GUESSFAIL;
delete [] mol_ntypes;
delete [] lcl_ntypes;
return;
}
}