diff options
author | midipix <writeonce@midipix.org> | 2015-12-23 22:12:14 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:31 -0500 |
commit | db486471613b80f756a26578f6015a690dc8212f (patch) | |
tree | 1a505b16bd2365db102ad1220c2661888e2a7afd /src/driver/mdso_driver_ctx.c | |
parent | cfa298f7f4637201610624b86d03dd209de0034a (diff) | |
download | mdso-db486471613b80f756a26578f6015a690dc8212f.tar.bz2 mdso-db486471613b80f756a26578f6015a690dc8212f.tar.xz |
driver: added driver-level handling of stdin.
Diffstat (limited to 'src/driver/mdso_driver_ctx.c')
-rw-r--r-- | src/driver/mdso_driver_ctx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index 1538d95..14f1e75 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -86,6 +86,7 @@ static struct mdso_driver_ctx_impl * mdso_driver_ctx_alloc( *units++ = entry->arg; ictx->meta = meta; + ictx->ctx.fdtmpin = -1; ictx->ctx.ctx.units = ictx->units; return &ictx->ctx; } @@ -267,6 +268,9 @@ static void mdso_free_driver_ctx_impl(struct mdso_driver_ctx_alloc * ictx) if (ictx->ctx.fddst >= 0) close(ictx->ctx.fddst); + if (ictx->ctx.fdtmpin >= 0) + close(ictx->ctx.fdtmpin); + if (ictx->ctx.asmbase) free(ictx->ctx.asmbase); |