param: use free hook for charp
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.
Signed-off-by Rusty Russell <[email protected]>
This is indeed a simple solution! I like it.
thanks,
Takashi