HPCC-8643 Fix memory leaks in ESP EclWatch services

Valgrind shows several memory leaks (4789 bytes in 63 blocks) when
running ESP EclWatch services. This fix solves the leaks in ESP
EclWatch services.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>