[network-manager-applet: 4/5] editor: fix memory leak in possibly_wrong_gateway()



commit 35b489ac4e0422a4de5f8819fd16d652b109b866
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Mon Sep 12 14:36:52 2016 +0200

    editor: fix memory leak in possibly_wrong_gateway()

 src/connection-editor/page-ip4.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/page-ip4.c b/src/connection-editor/page-ip4.c
index 669cb5f..9f4dbc8 100644
--- a/src/connection-editor/page-ip4.c
+++ b/src/connection-editor/page-ip4.c
@@ -810,7 +810,7 @@ gateway_matches_address (const char *gw_str, const char *addr_str, guint32 prefi
 static gboolean
 possibly_wrong_gateway (GtkTreeModel *model, GtkTreeIter *iter, const char *gw_str)
 {
-       char *addr_str, *prefix_str;
+       gs_free char *addr_str = NULL, *prefix_str = NULL;
        gboolean addr_valid;
        guint32 prefix;
 


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