COMMON: fix valgrind error