From 6ab3f1cde643d5e9408bac0b1ad10fb901cf2294 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 13 Feb 2024 03:53:17 +0000 Subject: slbt_get_lconf_flags(): keep the located libtool script mapped for later use. --- src/driver/slbt_driver_ctx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/driver') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index d03d1ed..bfb2206 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #define ARGV_DRIVER @@ -886,6 +887,11 @@ static void slbt_free_driver_ctx_impl(struct slbt_driver_ctx_alloc * ictx) if (ictx->ctx.libname) free(ictx->ctx.libname); + if (ictx->ctx.lconf.addr) + munmap( + ictx->ctx.lconf.addr, + ictx->ctx.lconf.size); + for (objlistp=ictx->ctx.objlistv; objlistp->name; objlistp++) { free(objlistp->objv); free(objlistp->addr); -- cgit v1.2.3