chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: drop bus/message GC logic
[elogind.git]
/
src
/
libsystemd
/
sd-bus
/
bus-message.c
diff --git
a/src/libsystemd/sd-bus/bus-message.c
b/src/libsystemd/sd-bus/bus-message.c
index eaffa2d3a207b1924e758af185b257dcd17f0834..4768a1fa9e1e8c2cef2a40b8f0c5e6ef866b612f 100644
(file)
--- a/
src/libsystemd/sd-bus/bus-message.c
+++ b/
src/libsystemd/sd-bus/bus-message.c
@@
-801,9
+801,10
@@
_public_ sd_bus_message* sd_bus_message_unref(sd_bus_message *m) {
assert(m->n_ref > 0);
m->n_ref--;
- if (m->n_ref
<=
0)
-
message_free(m)
;
+ if (m->n_ref
>
0)
+
return NULL
;
+ message_free(m);
return NULL;
}