diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2017-08-08 08:42:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-08-08 08:42:51 +0200 |
commit | 4f6631c8fcfc2a8b992a78ef73c2458f266d6245 (patch) | |
tree | 3072d7e746bcdd825a7657be7156c05ee15278fd /src/basic/random-util.c | |
parent | rules: split the rfkill subsystem rule (#6556) (diff) | |
download | systemd-4f6631c8fcfc2a8b992a78ef73c2458f266d6245.tar.xz systemd-4f6631c8fcfc2a8b992a78ef73c2458f266d6245.zip |
sd-bus: free everything when bus_set_address_user fails (#6552)
Fixes:
```
$ env -i valgrind --leak-check=full ./build/test-bus-chat
...
==7763== 1,888 (1,824 direct, 64 indirect) bytes in 1 blocks are
definitely lost in loss record 2 of 2
==7763== at 0x4C2FA50: calloc (vg_replace_malloc.c:711)
==7763== by 0x4F8FF9A: sd_bus_new (sd-bus.c:175)
==7763== by 0x4F938BF: sd_bus_open_user (sd-bus.c:1138)
==7763== by 0x109ACD: server_init (test-bus-chat.c:70)
==7763== by 0x10BCF8: main (test-bus-chat.c:526)
==7763==
```
Closes #6481
Diffstat (limited to 'src/basic/random-util.c')
0 files changed, 0 insertions, 0 deletions