[gnome-software/gnome-3-26] external-appstream: Fix leak when getting a temp file name
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] external-appstream: Fix leak when getting a temp file name
- Date: Mon, 2 Oct 2017 11:28:01 +0000 (UTC)
commit a2bde9b9d367a0e52cb186ad3c8248d5be088d26
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Sep 13 18:51:30 2017 +0200
external-appstream: Fix leak when getting a temp file name
.../gs-plugin-external-appstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/external-appstream/gs-plugin-external-appstream.c
b/plugins/external-appstream/gs-plugin-external-appstream.c
index 55b2ebe..fab725d 100644
--- a/plugins/external-appstream/gs-plugin-external-appstream.c
+++ b/plugins/external-appstream/gs-plugin-external-appstream.c
@@ -109,9 +109,9 @@ gs_plugin_external_appstream_refresh_url (GsPlugin *plugin,
{
GOutputStream *outstream = NULL;
SoupSession *soup_session;
- const gchar *tmp_file_path = NULL;
guint status_code;
gboolean file_written;
+ g_autofree gchar *tmp_file_path = NULL;
g_autofree gchar *file_name = NULL;
g_autofree gchar *local_mod_date = NULL;
g_autofree gchar *target_file_path = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]