scripts: modpost: check memory allocation results