From: Evan Broder Date: Sun, 21 Dec 2008 10:33:25 +0000 (-0600) Subject: Cleanup the mess we make. X-Git-Tag: 0.1.0~88 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/d6c53efae5d34d8edeba9269312d45c189d2ffdd?hp=6d5bef05205c0169e68459a69d1dcf6bc0c5ab86 Cleanup the mess we make. Signed-off-by: Evan Broder --- diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 6678418..43a0f03 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -11,3 +11,6 @@ cdef class PTS: code = a.rx_Init(0) if code != 0: raise Exception(str(code)) + + def __dealloc__(self): + a.rx_Finalize() diff --git a/afs/afs.pxd b/afs/afs.pxd index 5fb03e7..e0684d9 100644 --- a/afs/afs.pxd +++ b/afs/afs.pxd @@ -10,3 +10,4 @@ cdef extern from "ubik.h": cdef extern from "rx/rx.h": int rx_Init(int port) + void rx_Finalize()