Fix malloc context and whitespace.