mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 11:06:21 +00:00
fix(ai): fix leak from ai_get_provider_key
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user