[gnome-software/gnome-3-26] trivial: Fix leak in the external-appstream plugin



commit 9187e8a596fe85134745f8e8d0d7a7acc7733720
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.

 plugins/external-appstream/gs-plugin-external-appstream.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/plugins/external-appstream/gs-plugin-external-appstream.c 
b/plugins/external-appstream/gs-plugin-external-appstream.c
index fab725dc..672f15b3 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]