]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Add missing closedir() call in do_show()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Oct 2011 05:23:42 +0000 (05:23 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Oct 2011 18:17:41 +0000 (11:17 -0700)
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
ip/iptuntap.c

index 588926cf2bc1216b2419218a5d5f66725cefc854..29f2777e988ae274dffce07aa5559c4bf444c4fd 100644 (file)
@@ -298,6 +298,7 @@ static int do_show(int argc, char **argv)
                        printf(" group %ld", group);
                printf("\n");
        }
+       closedir(dir);
        return 0;
 }