Commit 0ba07844 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Fix memory leak.

parent b5f107aa
......@@ -452,8 +452,11 @@ dhcpv4_receive()
if(rc < 0)
return -1;
if(memcmp(req.sid, zeroes, 4) != 0 && memcmp(req.sid, myaddr, 4) != 0)
if(memcmp(req.sid, zeroes, 4) != 0 && memcmp(req.sid, myaddr, 4) != 0) {
free(req.cid);
free(req.uc);
return 0;
}
debugf("<- DHCPv4 (type %d) %s\n", req.type, interface->ifname);
......
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