param: use free hook for charp (fix leak of charp parameters)