TRQ-2548. Fix one more issue reported by valgrind.