1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

sd-bus: fix memleak

Closes CID#1437780.
This commit is contained in:
Yu Watanabe 2021-01-12 20:46:44 +09:00
parent ecb3e9fba3
commit 8f13ef254b

View File

@ -1516,8 +1516,8 @@ _public_ int sd_bus_open_system_remote(sd_bus **ret, const char *host) {
}
int bus_set_address_machine(sd_bus *b, bool user, const char *machine) {
_cleanup_free_ char *a = NULL;
const char *rhs;
char *a;
assert(b);
assert(machine);