diff mbox

[iproute2,01/11] Fix pipe I/O stream descriptor leak in init_service_resolver()

Message ID 4E89D333.70301@intra2net.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Thomas Jarosch Oct. 3, 2011, 3:22 p.m. UTC
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
---
 misc/ss.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/misc/ss.c b/misc/ss.c
index 1597ff9..f62d371 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -518,6 +518,7 @@  void init_service_resolver(void)
 				}
 			}
 		}
+		pclose(fp);
 	}
 }