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.c3
1 files changed, 3 insertions, 0 deletions
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
@@ -378,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)