HPCC-8673 Fix memory leaks when running Get Roxie Metrics

Valgrind reported memory leaks when running EclWatch Get Roxie
Metrics. I found that the leaks happened inside roxiecommlib.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>