[gnome-software] trivial: Fix leak in the external-appstream plugin
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix leak in the external-appstream plugin
- Date: Thu, 11 Jan 2018 10:43:03 +0000 (UTC)
commit 054e58ea2a3f631be5773c2297cf7539aa3f898e
Author: Joaquim Rocha <jrocha endlessm com>
Date: Mon Jan 8 11:26:36 2018 +0100
trivial: Fix leak in the external-appstream plugin
There was a mistake where a variable was reassigned for no reason and
this caused a leak.
.../gs-plugin-external-appstream.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/plugins/external-appstream/gs-plugin-external-appstream.c
b/plugins/external-appstream/gs-plugin-external-appstream.c
index fab725d..672f15b 100644
--- a/plugins/external-appstream/gs-plugin-external-appstream.c
+++ b/plugins/external-appstream/gs-plugin-external-appstream.c
@@ -133,8 +133,6 @@ gs_plugin_external_appstream_refresh_url (GsPlugin *plugin,
msg = soup_message_new (SOUP_METHOD_GET, url);
/* Set the If-Modified-Since header if the target file exists */
- target_file_path = g_build_filename (APPSTREAM_SYSTEM_DIR, file_name,
- NULL);
local_mod_date = gs_plugin_external_appstream_get_modification_date (target_file_path);
if (local_mod_date != NULL) {
g_debug ("Requesting contents of %s if modified since %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]