From 56243769f556259754b3c99534dfc5e93f98b31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 27 Jun 2022 14:42:24 +0800 Subject: [PATCH] Release port on close Helps with the Python module when an object gets deleted. Bug-Debian: http://bugs.debian.org/461068 Gbp-Pq: Name release_on_close.patch --- src/interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface.c b/src/interface.c index 6247050..0c32698 100644 --- a/src/interface.c +++ b/src/interface.c @@ -62,6 +62,7 @@ ieee1284_close (struct parport *port) debugprintf (needs_open_port, "ieee1284_close"); return E1284_INVALIDPORT; } + ieee1284_release(port); if (priv->fn->cleanup) priv->fn->cleanup (priv); priv->opened = 0;