mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Fix two leaks seen when using TLS connections
g_tls_certificate_list_new_from_file() was leaking the file contents, and GSource was leaking the GSourcePrivate structure that got created when using child sources.
This commit is contained in:
@@ -421,6 +421,7 @@ g_tls_certificate_list_new_from_file (const gchar *file,
|
||||
list = g_list_prepend (list, cert);
|
||||
}
|
||||
|
||||
g_free (contents);
|
||||
return g_list_reverse (list);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user