ENG-5497 fix valgrind.