// Finalizer - release the memory allocated to the mpz func ratFinalize(z *Rat) { if z.init { runtime.SetFinalizer(z, nil) C.mpq_clear(&z.i[0]) z.init = false } }
func (q *Rat) destroy() { if q.init { C.mpq_clear(&q.i[0]) } q.init = false }