diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2013-10-29 17:12:18 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-11-04 15:17:01 +0100 |
commit | 51cd4fb8e7ec0a589d321de5312160ee99523b5f (patch) | |
tree | ebaacda53045581abda54a566b9d151ea7379e4f | |
parent | 45d84ff3a03f547819fa53731df5d7b2b72150d0 (diff) | |
download | libsoup-51cd4fb8e7ec0a589d321de5312160ee99523b5f.tar.gz |
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
-rw-r--r-- | 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 6f44935f..3a29f4f8 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) { |