summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeeshanak@gnome.org>2019-09-27 13:09:04 +0200
committerZeeshan Ali <zeeshanak@gnome.org>2019-09-30 09:50:16 +0200
commitdd68b5c4001c2b71d39e2f2414956f3034be9c76 (patch)
treeebb4a86f934384518e94d776e816cfff17f627ec
parentb858035d2c7e88b8a30219545a02fd92743272c4 (diff)
wifi: Plug a leak
This is the same as 459b26a3569f7382abab7181a3c98f5e2c6f743a but in the duplicated code in a different modules. Fixes #120.
-rw-r--r--src/gclue-wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gclue-wifi.c b/src/gclue-wifi.c
index 946cb81..11ff95b 100644
--- a/src/gclue-wifi.c
+++ b/src/gclue-wifi.c
@@ -227,7 +227,7 @@ static char *
get_bssid_from_bss (WPABSS *bss)
{
GVariant *variant;
- char *raw_bssid;
+ g_autofree char *raw_bssid = NULL;
char *bssid;
guint raw_len, len, i, j;