diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-03-19 15:58:02 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-03-19 17:31:54 -0700 |
commit | f886bd3f22f6bf8501a0b4c69377f4131517589d (patch) | |
tree | e186bfe92225a4a85dcd3d421888a0892e636ed8 | |
parent | dc2efcf8d0ffdae5eefd6f0b7d366dde99bb244f (diff) | |
download | vyatta-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.cc | 1 |
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); } } } |