Frees no-longer used memory.
Fixed problem with select(2).