machined-varlink: fix double free

Fixes: #18599
This commit is contained in:
David Tardon
2021-08-02 16:19:17 +01:00
committed by Luca Boccassi
parent f8d54f7810
commit feac9a1d1b
+1 -1
View File
@@ -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;
}