fix(ai): fix leak from ai_get_provider_key

This commit is contained in:
2026-05-01 18:50:21 +00:00
parent cdcc45b7c6
commit f4221e27ac

View File

@@ -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,