Fix WS core dump from free.