[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 65/331] Fix free leak on error



commit 51fb8faac163c4e7d8adbd5229b95d7c09bd4a67
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]