Fix some errors in the mem leaks docs