about summary refs log tree commit diff
path: root/src/nmtui
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2023-01-13 15:22:36 -0500
committerJeremy Bicha <jeremy.bicha@canonical.com>2023-01-13 15:22:36 -0500
commit232b13fc50aa7350766da07d057eb397f12fbf71 (patch)
treecd5a435c17f32b7347398363ab12188208d88c2f /src/nmtui
parent4baddbd2cc3e3d92b45b574ab18aa2630c812e6a (diff)
parentac445e26cbdad011277f8822e0fc468ab1a6c61f (diff)
Merge tag 'debian/1.40.10-1' into ubuntu/master
network-manager Debian release 1.40.10-1
Diffstat (limited to 'src/nmtui')
-rw-r--r--src/nmtui/nmt-device-entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nmtui/nmt-device-entry.c b/src/nmtui/nmt-device-entry.c
index 7f312bd1..99cc43ad 100644
--- a/src/nmtui/nmt-device-entry.c
+++ b/src/nmtui/nmt-device-entry.c
@@ -132,12 +132,14 @@ device_entry_parse(NmtDeviceEntry *deventry,
         && (!words[1] || nm_utils_ifname_valid_kernel(words[1], NULL))) {
         *mac_address    = words[0];
         *interface_name = NULL;
+        g_free(words[1]);
         g_free(words);
         return TRUE;
     } else if (nm_utils_ifname_valid_kernel(words[0], NULL)
                && (!words[1] || nm_utils_hwaddr_aton(words[1], buf, len))) {
         *interface_name = words[0];
         *mac_address    = NULL;
+        g_free(words[1]);
         g_free(words);
         return TRUE;
     }