[network-manager-openvpn: 4/6] service: fix freeing static, non-malloced logging string



commit 71ade24295fb66a0ad45c085c2d0d985aff362ce
Author: Thomas Haller <thaller redhat com>
Date:   Sun Jan 31 18:29:23 2016 +0100

    service: fix freeing static, non-malloced logging string

 src/nm-openvpn-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 42e9b17..691c046 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -656,7 +656,7 @@ handle_management_socket (NMOpenvpnPlugin *plugin,
                        if (message) {
                                if (priv->interactive) {
                                        if (debug) {
-                                               char *joined = hints ? g_strjoinv (",", (char **) hints) : 
"none";
+                                               char *joined = hints ? g_strjoinv (",", (char **) hints) : 
g_strdup ("none");
                                                g_message ("Requesting new secrets: '%s' (%s)", message, 
joined);
                                                g_free (joined);
                                        }


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