Change gp_xxx_free to gp_xxx_unref.

The gp_xxx_free methods are deprecated.