[libsoup] Don't leak g_get_current_dir() result
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Don't leak g_get_current_dir() result
- Date: Mon, 4 Nov 2013 14:19:52 +0000 (UTC)
commit 51cd4fb8e7ec0a589d321de5312160ee99523b5f
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Oct 29 17:12:18 2013 +0100
Don't leak g_get_current_dir() result
glib API documentation indicates:
« The returned string should be freed when no longer needed. »
https://bugzilla.gnome.org/show_bug.cgi?id=711085
libsoup/soup-session.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 6f44935..3a29f4f 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -509,6 +509,7 @@ set_ssl_ca_file (SoupSession *session, const char *ssl_ca_file)
path = g_build_filename (cwd, ssl_ca_file, NULL);
tlsdb = g_tls_file_database_new (path, &error);
g_free (path);
+ g_free (cwd);
}
if (error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]