[Matahari] [PATCH] Check malloc() return values