summaryrefslogtreecommitdiffhomepage
path: root/src/driver/mdso_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/mdso_driver_ctx.c')
-rw-r--r--src/driver/mdso_driver_ctx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index 30d1ba7..bfa0d9e 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -1,6 +1,6 @@
/****************************************************************/
/* mdso: midipix dso scavenger */
-/* Copyright (C) 2015--2017 Z. Gilboa */
+/* Copyright (C) 2015--2024 SysDeer Technologies, LLC */
/* Released under GPLv2 and GPLv3; see COPYING.MDSO. */
/****************************************************************/
@@ -240,6 +240,8 @@ int mdso_get_driver_ctx(
entry->arg,
optv,meta);
+ break;
+
case TAG_VERSION:
cctx.drvflags |= MDSO_DRIVER_VERSION;
break;
@@ -376,6 +378,9 @@ static void mdso_free_driver_ctx_impl(struct mdso_driver_ctx_alloc * ictx)
close(ictx->ctx.fddst);
if (ictx->ctx.fdtmpin >= 0)
+ unlink(ictx->ctx.tmpname);
+
+ if (ictx->ctx.fdtmpin >= 0)
close(ictx->ctx.fdtmpin);
if (ictx->ctx.asmbase)