i review the code, and find out, there are memory leaks in function gwavi_open and gwavi_close.
i review the code, and find out, there are memory leaks in function gwavi_open and gwavi_close.