tsfix: fix the crash caused by last tsfix.c modification (memory leak fix)