From 1e590722efb24072b63ea6569e66985c7d148b8b Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 12 Sep 2016 14:36:52 +0200 Subject: editor: fix memory leak in possibly_wrong_gateway() --- src/connection-editor/page-ip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection-editor/page-ip4.c b/src/connection-editor/page-ip4.c index 669cb5f6..9f4dbc86 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; -- cgit v1.2.1