Correct memory leak in listener test programme

This change corrects a potential memory leak that Sonar has identified.
The bug is not significant, and this change should not cause a release
of even a patch update.

Issue-ID: RIC-786

Signed-off-by: E. Scott Daniels <daniels@att.com>
Change-Id: I4bbd24ccc044f4bc5e9e72051bb1f07e3d310d94
1 file changed