assume you copy the ini and dicc files to /etc/friso
fix memory leaks; thanks to Chen Xin.