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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user