1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-15 05:57:26 +03:00

bus: fix memory leak when kdbus is not enabled

This commit is contained in:
Lennart Poettering 2014-03-13 20:00:50 +01:00
parent 01dde0611b
commit 82923adfe5

View File

@ -1189,7 +1189,8 @@ _public_ int sd_bus_open_user(sd_bus **ret) {
#ifdef ENABLE_KDBUS
asprintf(&b->address, KERNEL_USER_BUS_FMT, (unsigned long) getuid());
#else
return -ECONNREFUSED;
r = -ECONNREFUSED;
goto fail;
#endif
}