grim/testing

grim/testing/
Fix some double frees that scanbuild found
release-2.x.y
2021-06-01, Gary Kramlich
3e498730f8ca