param: fix lots of bugs with writing charp params from sysfs, by leaking mem.