Case malloc fails to get memory