From: Thomas Jarosch Date: Mon, 3 Oct 2011 05:23:42 +0000 (+0000) Subject: Add missing closedir() call in do_show() X-Git-Tag: v3.0.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a927dc08c8e8e70f68f84983c488158afb4a95;p=thirdparty%2Fiproute2.git Add missing closedir() call in do_show() Detected by cppcheck. Signed-off-by: Thomas Jarosch --- 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; }