summaryrefslogtreecommitdiffstats
path: root/utils/expect_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/expect_create.c')
-rw-r--r--utils/expect_create.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/expect_create.c b/utils/expect_create.c
index 912ab8e..cf379e9 100644
--- a/utils/expect_create.c
+++ b/utils/expect_create.c
@@ -46,6 +46,7 @@ int main(void)
h = nfct_open(CONNTRACK, 0);
if (!h) {
perror("nfct_open");
+ nfct_destroy(master);
return -1;
}
@@ -76,6 +77,8 @@ int main(void)
mask = nfct_new();
if (!mask) {
perror("nfct_new");
+ nfct_destroy(master);
+ nfct_destroy(expected);
exit(EXIT_FAILURE);
}
@@ -94,6 +97,9 @@ int main(void)
exp = nfexp_new();
if (!exp) {
perror("nfexp_new");
+ nfct_destroy(master);
+ nfct_destroy(expected);
+ nfct_destroy(mask);
exit(EXIT_FAILURE);
}