From 761416a628f6468920db6ac52a36fdbd9eb83ab3 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 13 May 2021 09:03:23 +0000 Subject: driver: stdin input: unlink temporary file upon freeing of driver context. --- src/driver/mdso_driver_ctx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/driver/mdso_driver_ctx.c') diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index e7e4a0f..46525f2 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -377,6 +377,9 @@ static void mdso_free_driver_ctx_impl(struct mdso_driver_ctx_alloc * ictx) if (ictx->ctx.fddst != AT_FDCWD) close(ictx->ctx.fddst); + if (ictx->ctx.fdtmpin >= 0) + unlink(ictx->ctx.tmpname); + if (ictx->ctx.fdtmpin >= 0) close(ictx->ctx.fdtmpin); -- cgit v1.2.3