Fix unmatched alloc/free in resizer.