]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Fix pipe I/O stream descriptor leak in init_service_resolver()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Oct 2011 05:22:27 +0000 (05:22 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Oct 2011 18:10:03 +0000 (11:10 -0700)
Detected by cppcheck.

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

index 253f8d3cd3097524d69da1b2b5e1ab15c4ce8f59..b00841bcd1fbc9cf4734f816eb06b55d60cf0c90 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -518,6 +518,7 @@ void init_service_resolver(void)
                                }
                        }
                }
+               pclose(fp);
        }
 }