[libsoup/gnome-3-10] Don't leak g_get_current_dir() result
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/gnome-3-10] Don't leak g_get_current_dir() result
- Date: Mon, 11 Nov 2013 22:47:20 +0000 (UTC)
commit 1f17e30595d2f3dd9136b7cc540dd0d5f5a257cc
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 bd586cd..d438e8b 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]