summaryrefslogtreecommitdiffstats
path: root/utils/expect_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/expect_delete.c')
-rw-r--r--utils/expect_delete.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/expect_delete.c b/utils/expect_delete.c
index 18f4a79..21e4a03 100644
--- a/utils/expect_delete.c
+++ b/utils/expect_delete.c
@@ -30,6 +30,7 @@ int main(void)
exp = nfexp_new();
if (!exp) {
perror("nfexp_new");
+ nfct_destroy(expected);
exit(EXIT_FAILURE);
}
@@ -38,6 +39,7 @@ int main(void)
h = nfct_open(EXPECT, 0);
if (!h) {
perror("nfct_open");
+ nfct_destroy(expected);
return -1;
}
@@ -49,5 +51,9 @@ int main(void)
else
printf("(OK)\n");
+ nfct_close(h);
+
+ nfct_destroy(expected);
+
ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS);
}