Use proper (w)free functions for (w)malloced data.