diff options
Diffstat (limited to 'utils/expect_get.c')
-rw-r--r-- | utils/expect_get.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/expect_get.c b/utils/expect_get.c index fc7e116..e42c845 100644 --- a/utils/expect_get.c +++ b/utils/expect_get.c @@ -42,6 +42,7 @@ int main(void) exp = nfexp_new(); if (!exp) { perror("nfexp_new"); + nfct_destroy(master); exit(EXIT_FAILURE); } @@ -50,6 +51,7 @@ int main(void) h = nfct_open(EXPECT, 0); if (!h) { perror("nfct_open"); + nfct_destroy(master); return -1; } @@ -64,5 +66,7 @@ int main(void) nfct_close(h); + nfct_destroy(master); + ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS); } |