sw/ad9361_api: clear malloced memory