fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that references sp. The free needs to follow ISSET Fix: Here's a patch:
State Changed From-To: open->closed fixed, thanks