[gnome-software/wip/temp/ubuntu-xenial-rebased: 68/329] Fix free leak on error



commit cb2ceb6d0bb652411f3e8bfcc21c74f7576a908a
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Jan 28 21:18:39 2016 +1300

    Fix free leak on error

 src/plugins/gs-plugin-snappy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index f6efb95..e0b579a 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -204,7 +204,7 @@ get_apps (GsPlugin *plugin, GList **list, AppFilterFunc filter_func, gpointer us
 {
        g_autoptr(GSocket) socket = NULL;
        guint status_code;
-       g_autofree gchar *reason_phrase, *response_type = NULL, *response = NULL;
+       g_autofree gchar *reason_phrase = NULL, *response_type = NULL, *response = NULL;
        JsonParser *parser;
        JsonObject *root, *result, *packages;
        GList *package_list, *link;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]