diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 26f6ab03..e0b035e6 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -10660,7 +10660,7 @@ cmd_ai(ProfWin* window, const char* const command, gchar** args) cons_show("Available providers:"); for (GList* curr = providers; curr; curr = g_list_next(curr)) { AIProvider* provider = curr->data; - const gchar* key = ai_get_provider_key(provider->name); + auto_gchar gchar* key = ai_get_provider_key(provider->name); cons_show(" %s (URL: %s, Key: %s)", provider->name, provider->api_url,