Fix freeing non-heap object warning from GCC (r=ann).