Fix lack of free() in bug (quiet valgrind)