fix: memleaks in tlscerts and console (upstream 7f5ae430)

This commit is contained in:
2026-03-31 19:02:53 +03:00
parent d993155c30
commit c7c4c8da78
2 changed files with 5 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ tlscerts_list(void)
auto_gcharv gchar** groups = g_key_file_get_groups(tlscerts, &len);
for (int i = 0; i < g_strv_length(groups); i++) {
char* fingerprint = strdup(groups[i]);
char* fingerprint = groups[i];
int version = g_key_file_get_integer(tlscerts, fingerprint, "version", NULL);
auto_gchar gchar* serialnumber = g_key_file_get_string(tlscerts, fingerprint, "serialnumber", NULL);
auto_gchar gchar* subjectname = g_key_file_get_string(tlscerts, fingerprint, "subjectname", NULL);