Use PG_FREE_IF_COPY() to prevent leaking memory for detoasted inputs.

Issue #4.