[gupnp] linux-cm: Fix potential double-free



commit 9aea8d6922b29498704073c5b835a0468d118b0e
Author: Jens Georg <mail jensge org>
Date:   Thu Nov 29 12:33:27 2018 +0100

    linux-cm: Fix potential double-free

 libgupnp/gupnp-linux-context-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 000e469..81ade87 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -260,6 +260,8 @@ network_device_update_essid (NetworkInterface *device)
                 device->essid = g_strdup (essid);
         else
                 old_essid = NULL;
+#else
+        old_essid = NULL;
 #endif
         g_free (old_essid);
 }


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