- if (ctx->avps != NULL)
- rc_avpair_free(ctx->avps);
- if (ctx->radHandle != NULL)
- rc_config_free(ctx->radHandle);
-
+ if (ctx->radConn != NULL)
+ rs_conn_destroy(ctx->radConn);
+ if (ctx->radContext != NULL)
+ rs_context_destroy(ctx->radContext);
+ if (ctx->radServer != NULL)
+ GSSEAP_FREE(ctx->radServer);