From 538c8a5109b56d1d0a26631fa93913341214501d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Jul 2016 17:00:06 -0400 Subject: pty layer: added ptyc_alloc_pty(), ptyc_free_pty(). --- src/driver/ptyc_amain.c | 3 +++ src/driver/ptyc_driver_ctx.c | 1 + 2 files changed, 4 insertions(+) (limited to 'src/driver') diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c index 4762d3a..3a5ca68 100644 --- a/src/driver/ptyc_amain.c +++ b/src/driver/ptyc_amain.c @@ -70,5 +70,8 @@ int ptyc_main(int argc, char ** argv, char ** envp) if ((ptyc_version(dctx)) < 0) return ptyc_exit(dctx,2); + if (ptyc_alloc_pty(dctx)) + return ptyc_exit(dctx,2); + return ptyc_exit(dctx,ret); } diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 78ffb54..d403a98 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -236,6 +236,7 @@ int ptyc_create_driver_ctx( static void ptyc_free_driver_ctx_impl(struct ptyc_driver_ctx_alloc * ictx) { + ptyc_free_pty(&ictx->ctx.ctx); argv_free(ictx->meta); free(ictx); } -- cgit v1.2.3