summaryrefslogtreecommitdiffstats
path: root/ip/ip.c
diff options
context:
space:
mode:
authorshemminger <shemminger>2005-09-21 19:33:17 +0000
committershemminger <shemminger>2005-09-21 19:33:17 +0000
commit8ed63ab1f1283b2c63355fb7c1e80abead4b9399 (patch)
tree348b8d476bdf08559d72662a138296669c6ebc9f /ip/ip.c
parentfc57a9df1bee719c86a4f0bc82bafae05bb92fc2 (diff)
Fix leaks and warnings reported by valgrind.
Diffstat (limited to 'ip/ip.c')
-rw-r--r--ip/ip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ip/ip.c b/ip/ip.c
index b6ff2df0..f57651e7 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -122,6 +122,8 @@ static int batch(const char *name)
break;
}
}
+ if (line)
+ free(line);
rtnl_close(&rth);
return ret;