sockfilt.c: free memory in case of memory allocation errors
sockfilt.c: ignore non-key-events and continue waiting for input