Leases based on MAC addresses
Elliot Finley
lists at efinley.com
Tue Feb 17 14:08:30 UTC 2009
David W. Hankins wrote:
> On Mon, Feb 16, 2009 at 01:04:37PM -0700, Elliot Finley wrote:
>> tuid = (unsigned char *)dmalloc (lt -> uid_max, MDL);
>> if (!tuid)
>> log_fatal ("no memory for large uid.");
>> memcpy (tuid, d1.data, lt -> uid_len);
>> ! //EOFlt -> uid = tuid;
>
> That's a memory leak.
After running with this patch for the last 16 hours on a relatively busy
server (lease file has about 42000 leases, it hands out about 2-3 leases
per second), the memory used (as shown by 'top') hasn't changed at all.
More information about the dhcp-users
mailing list