From e9a927dc08c8e8e70f68f84983c488158afb4a95 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 3 Oct 2011 05:23:42 +0000 Subject: [PATCH] Add missing closedir() call in do_show() Detected by cppcheck. Signed-off-by: Thomas Jarosch --- ip/iptuntap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ip/iptuntap.c b/ip/iptuntap.c index 588926cf2..29f2777e9 100644 --- a/ip/iptuntap.c +++ b/ip/iptuntap.c @@ -298,6 +298,7 @@ static int do_show(int argc, char **argv) printf(" group %ld", group); printf("\n"); } + closedir(dir); return 0; } -- 2.47.3