about summary refs log tree commit diff
path: root/src/nmtui
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-01-11 13:41:09 +0100
committerMichael Biebl <biebl@debian.org>2023-01-11 13:41:09 +0100
commit006f5c299754ae1107b6d623c7d8436ac4a109ea (patch)
tree9245e2b76b31669c0d39e805b800156436602d93 /src/nmtui
parentb2ca000f0e0a915aba25f7d16b34bd092055ad59 (diff)
parent5d9e3721ad196595acd064e0d3ce66edc2613e51 (diff)
Update upstream source from tag 'upstream/1.40.10'
Update to upstream version '1.40.10'
with Debian dir 61c058a13d387971499d4f26e30682b0148db96f
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;
     }