fix(ai): fix leak from ai_get_provider_key
Some checks failed
CI Code / Check spelling (pull_request) Successful in 1m7s
CI Code / Check coding style (pull_request) Successful in 1m54s
CI Code / Linux (debian) (pull_request) Failing after 3m0s
CI Code / Linux (arch) (pull_request) Failing after 3m7s
CI Code / Linux (ubuntu) (pull_request) Failing after 3m8s
CI Code / Code Coverage (pull_request) Successful in 2m53s
Some checks failed
CI Code / Check spelling (pull_request) Successful in 1m7s
CI Code / Check coding style (pull_request) Successful in 1m54s
CI Code / Linux (debian) (pull_request) Failing after 3m0s
CI Code / Linux (arch) (pull_request) Failing after 3m7s
CI Code / Linux (ubuntu) (pull_request) Failing after 3m8s
CI Code / Code Coverage (pull_request) Successful in 2m53s
This commit is contained in:
@@ -10660,7 +10660,7 @@ cmd_ai(ProfWin* window, const char* const command, gchar** args)
|
|||||||
cons_show("Available providers:");
|
cons_show("Available providers:");
|
||||||
for (GList* curr = providers; curr; curr = g_list_next(curr)) {
|
for (GList* curr = providers; curr; curr = g_list_next(curr)) {
|
||||||
AIProvider* provider = curr->data;
|
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)",
|
cons_show(" %s (URL: %s, Key: %s)",
|
||||||
provider->name,
|
provider->name,
|
||||||
provider->api_url,
|
provider->api_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user