[NetworkManager-openvpn/bg/auth-dialog-fix] fixup! editor: fix memory corruption when creating advanced dialog



commit ac514a7251fe56f3fff4363c669e709d4814d073
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Thu Oct 11 01:20:42 2018 +0200

    fixup! editor: fix memory corruption when creating advanced dialog
    
    Don't leak the string.

 properties/nm-openvpn-editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/properties/nm-openvpn-editor.c b/properties/nm-openvpn-editor.c
index f1d3164..7d5192c 100644
--- a/properties/nm-openvpn-editor.c
+++ b/properties/nm-openvpn-editor.c
@@ -1488,7 +1488,7 @@ advanced_dialog_new (GHashTable *hash, const char *contype)
 
        g_object_set_data_full (G_OBJECT (dialog), "builder",
                                builder, (GDestroyNotify) g_object_unref);
-       g_object_set_data (G_OBJECT (dialog), "connection-type", g_strdup (contype));
+       g_object_set_data_full (G_OBJECT (dialog), "connection-type", g_strdup (contype), g_free);
 
        ok_button = GTK_WIDGET (gtk_builder_get_object (builder, "ok_button"));
 


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