The thread() function doesn’t free a variable t->thbuf.gnu_longname after allocating memory, which may cause a memory leak.