add _cleanup_gpg_ for struct gpg_t