PP/2: complete mid
PP/2: add check for NULL on malloc