summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-03-19 15:58:02 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-03-19 17:31:54 -0700
commitf886bd3f22f6bf8501a0b4c69377f4131517589d (patch)
treee186bfe92225a4a85dcd3d421888a0892e636ed8
parentdc2efcf8d0ffdae5eefd6f0b7d366dde99bb244f (diff)
downloadvyatta-wanloadbalance-f886bd3f22f6bf8501a0b4c69377f4131517589d.tar.gz
vyatta-wanloadbalance-f886bd3f22f6bf8501a0b4c69377f4131517589d.zip
need to close file when configured for dhcp on ppp interface--file handle leak otherwise.
-rw-r--r--src/lbdata.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc
index 2872258..f454f09 100644
--- a/src/lbdata.cc
+++ b/src/lbdata.cc
@@ -355,6 +355,7 @@ LBData::update_dhcp_nexthop()
if (fgets(str, 1024, fp)) {
h_iter->second._dhcp_nexthop = string(str);
}
+ fclose(fp);
}
}
}