rm unused LINE_LEN_EXCEEDED (previous temp code) also handle some malloc fails