diff options
Diffstat (limited to 'utils/conntrack_get.c')
-rw-r--r-- | utils/conntrack_get.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/conntrack_get.c b/utils/conntrack_get.c index 7d7badd..6ddecaf 100644 --- a/utils/conntrack_get.c +++ b/utils/conntrack_get.c @@ -42,6 +42,7 @@ int main(void) h = nfct_open(CONNTRACK, 0); if (!h) { perror("nfct_open"); + nfct_destroy(ct); return -1; } @@ -57,5 +58,7 @@ int main(void) nfct_close(h); + nfct_destroy(ct); + ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS); } |