summaryrefslogtreecommitdiff
path: root/net/test/pf_key_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/test/pf_key_test.py')
-rwxr-xr-xnet/test/pf_key_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/test/pf_key_test.py b/net/test/pf_key_test.py
index 77cf82c..7791bd1 100755
--- a/net/test/pf_key_test.py
+++ b/net/test/pf_key_test.py
@@ -34,6 +34,10 @@ class PfKeyTest(unittest.TestCase):
self.pf_key = pf_key.PfKey()
self.xfrm = xfrm.Xfrm()
+ def tearDown(self):
+ self.pf_key.close()
+ self.pf_key = None
+
def testAddDelSa(self):
src4 = csocket.Sockaddr(("192.0.2.1", 0))
dst4 = csocket.Sockaddr(("192.0.2.2", 1))