summaryrefslogtreecommitdiff
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-16 20:25:37 +0100
committerGitHub <noreply@github.com>2021-02-16 20:25:37 +0100
commit0addd9ba9c2a5e32617d98bef6ec753323d3da4c (patch)
tree902cf3d5a1f05d4f347143c8789ffa130bd48159 /src/network/networkctl.c
parent7820a56ccb6b164699f25fc00cbe3c38fbc182a4 (diff)
parent15567b3a73285ac9d450fb2a967784e28afb6f5e (diff)
downloadsystemd-0addd9ba9c2a5e32617d98bef6ec753323d3da4c.tar.gz
Merge pull request #18616 from keszybz/argv-fuzzer-quick-fix
fuzz-systemctl-parse-argv: avoid "leak" of bus object
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 4381f63a2d..1dd3438abd 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -230,7 +230,7 @@ static int link_info_compare(const LinkInfo *a, const LinkInfo *b) {
return CMP(a->ifindex, b->ifindex);
}
-static const LinkInfo* link_info_array_free(LinkInfo *array) {
+static LinkInfo* link_info_array_free(LinkInfo *array) {
for (unsigned i = 0; array && array[i].needs_freeing; i++) {
sd_device_unref(array[i].sd_device);
free(array[i].ssid);