fix wireless.c mem leak