The abolition of slavery in 1834 freed a quarter million slaves , many of whom became small farmers .