Leases based on MAC addresses

Elliot Finley lists at efinley.com
Tue Feb 17 00:31:38 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.

what would be the proper way to do it?





More information about the dhcp-users mailing list