Skip to contentSkip to conversation

Add missing closedir() call in do_show()

PATCH In review Thomas Jarosch 1 participant 1 message Oct 3, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/11 Add missing closedir() call in do_show()

Detected by cppcheck.

---
 ip/iptuntap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
ip/iptuntap.c +1 -0
index 588926c..29f2777 100644
@@ -298,6 +298,7 @@ static int do_show(int argc, char **argv)
 			printf(" group %ld", group);
 		printf("\n");
 	}
+	closedir(dir);
 	return 0;
 }
 
Signature · 1 line
1.7.4.4