<div>Hi,</div>
<div> </div>
<div>Problem: </div>
<div>ISC DHCP 4.2.0-P2 omapi_listener memory leak</div>
<div> </div>
<div>Description: </div>
<div>After some tests with DHCP failover when network addresses which failover try to bind were remaining unavailable for some time,</div>
<div>I found that the memory is leaked on DHCPD process in method omapi_accept().</div>
<div> </div>
<div>Affected versions: </div>
<div>I have observed the problem on versions 3.0.7, 3.1-ESV, 4.2.0-P2</div>
<div> </div>
<div>How to reproduce:</div>
<div> </div>
<div>1. Start DHCP with failover peer configured and with libumem preloaded</div>
<div># env LD_PRELOAD=libumem.so.1 UMEM_DEBUG=default <PATH_TO_DHCPD_BINARY></div>
<div> </div>
<div>2. Put ifconfig down for interface used to failover purpose.</div>
<div> </div>
<div>3. You will see DHCP server logs "address not available".</div>
<div> </div>
<div>4. See output</div>
<div># echo "::findleaks -d " | mdb -p <PID_OF_DHCPD_PROCESS><br></div>
<div>Solution:</div>
<div>The trivial patch which fixes that problem is attached as well as MDB output.</div>
<div> </div>
<div>Regards,</div>
<div>Serghei Samsi<br></div>