Heat capacity in weakly correlated liquids