summaryrefslogtreecommitdiffstats
path: root/src/machine/machined-varlink.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2021-08-02 13:31:04 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2021-08-02 17:19:17 +0200
commitfeac9a1d1bf3f59adaa85f58b655ec01a111a29a (patch)
treef8133f261bb57f36d3ce53c7a796924994b129fe /src/machine/machined-varlink.c
parentUse correct `<fcntl.h>` include (diff)
downloadsystemd-feac9a1d1bf3f59adaa85f58b655ec01a111a29a.tar.xz
systemd-feac9a1d1bf3f59adaa85f58b655ec01a111a29a.zip
machined-varlink: fix double free
Fixes: #18599
Diffstat (limited to '')
-rw-r--r--src/machine/machined-varlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machined-varlink.c b/src/machine/machined-varlink.c
index 009d283acc..fc0b0f11ad 100644
--- a/src/machine/machined-varlink.c
+++ b/src/machine/machined-varlink.c
@@ -297,7 +297,7 @@ static int group_lookup_name(Manager *m, const char *name, gid_t *ret_gid, char
desc = mfree(desc);
*ret_gid = converted_gid;
- *ret_description = desc;
+ *ret_description = TAKE_PTR(desc);
return 0;
}