Merge "hal: fix a memeory leak caused by using str_parms_to_str()"