We show that the free energy at criticality of a finite two-dimensional system of characteristic size L has in general a term which behaves like ln L as L → ∞. The coefficient of this term is universal and is proportional to the conformal anomaly number c. Furthermore, when the metric is non-singular and the boundaries are smooth, this coefficient depends only on the topology and is equal to − 1 6 c gX, where Ξ is the Euler characteristic. However, if there are conical singularities in the metric, or corners on the boundary, this is no longer true. For these cases, we give the correct result.