[network-manager-openvpn] service: fix leak of @bus_name in nm_openvpn_start_openvpn_binary()



commit 197b34494cfb9612875ebc4638ca8c56f7635b5a
Author: Thomas Haller <thaller redhat com>
Date:   Mon May 16 12:24:00 2016 +0200

    service: fix leak of @bus_name in nm_openvpn_start_openvpn_binary()
    
    Fixes: aced3d24a25ae1526609b6a89bc1acaa32c3c244

 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 d4d660d..12c6de2 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -1098,7 +1098,7 @@ nm_openvpn_start_openvpn_binary (NMOpenvpnPlugin *plugin,
        char *stmp;
        const char *defport, *proto_tcp;
        const char *nm_openvpn_user, *nm_openvpn_group, *nm_openvpn_chroot;
-       gchar *bus_name;
+       gs_free char *bus_name = NULL;
 
        /* Find openvpn */
        openvpn_binary = nm_find_openvpn ();


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