testsuite: fix file descriptor leak in benchmorc

Coverity CID 1147543
tools: fix memory leak in orcc

Coverity CID 1147542