[PATCH 3/4] [programs\cmd] Fix issue in WCMD_assoc highlighted by valgrind