about summary refs log tree commit diff
path: root/src/nmcli
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-01-26 21:57:17 +0100
committerMichael Biebl <biebl@debian.org>2023-01-26 21:57:17 +0100
commitf8b5aa96b4370d88f38699433cec6e7a26a410f1 (patch)
tree1817c96b86eac7fb93125a52d6b6d31f6a4bad45 /src/nmcli
parentb0529444cb9c40efb19c7b4d4fe8da86ebcc7bdb (diff)
parent2c1b7a7ea3c332b4d690c0595ef76c81de1f0cc8 (diff)
Merge tag 'debian/1.40.12-1' into debian/bullseye-backports
network-manager Debian release 1.40.12-1
Diffstat (limited to 'src/nmcli')
-rw-r--r--src/nmcli/devices.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nmcli/devices.c b/src/nmcli/devices.c
index 9b7ebce3..db14ec05 100644
--- a/src/nmcli/devices.c
+++ b/src/nmcli/devices.c
@@ -1149,7 +1149,7 @@ get_device_list(NmCli *nmc, int *argc, const char *const **argv)
     if (*argc == 0) {
         g_string_printf(nmc->return_text, _("Error: No interface specified."));
         nmc->return_value = NMC_RESULT_ERROR_USER_INPUT;
-        goto error;
+        return NULL;
     }
 
     devices = nmc_get_devices_sorted(nmc->client);
@@ -1190,9 +1190,6 @@ get_device_list(NmCli *nmc, int *argc, const char *const **argv)
     }
     g_free(devices);
 
-error:
-    g_strfreev(arg_arr);
-
     return queue;
 }