From 438b6d158ee3d0d2699db0c3dd7e96d23c9abd35 Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Wed, 18 May 2022 11:05:59 +0200 Subject: [PATCH] pyocf: Delete Io object in pyocf before putting in OCF To avoid Io reuse (new io with same pointer could be allocated before deleting from pyocf instance tracking dictionary). Signed-off-by: Jan Musial --- tests/functional/pyocf/types/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/pyocf/types/io.py b/tests/functional/pyocf/types/io.py index e314a80..a7d0cf0 100644 --- a/tests/functional/pyocf/types/io.py +++ b/tests/functional/pyocf/types/io.py @@ -92,8 +92,8 @@ class Io(Structure): except: # noqa E722 pass - self.put() self.del_object() + self.put() def submit(self): return OcfLib.getInstance().ocf_volume_submit_io(byref(self))