Skip to contentSkip to conversation

param: use free hook for charp

PATCH Takashi Iwai 1 participant 1 message Oct 30, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Rusty,

sorry for the delayed reply; I finally got back to work now.

At Fri, 23 Oct 2009 00:51:29 +1030,

Quoted 9 lines · Rusty Russell

Instead of using a "I kmalloced this" flag, we keep track of the kmalloced strings and use that list to check if we need to kfree (in practice, the list is very short).

This means that kparams can be const again.

This is indeed a simple solution! I like it.

thanks,

Takashi