Commit c16ff5e7 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Removed memory leak in dhcp4_srv_unittest.

parent 9036a185
......@@ -366,7 +366,7 @@ public:
const IOAddress& client_addr,
const IOAddress& relay_addr) {
NakedDhcpv4Srv* srv = new NakedDhcpv4Srv(0);
boost::scoped_ptr<NakedDhcpv4Srv> srv(new NakedDhcpv4Srv(0));
vector<uint8_t> mac(6);
for (int i = 0; i < 6; i++) {
mac[i] = i*10;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment