gi: support freeing interface