summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-06-04 23:37:57 +0200
committerKay Sievers <kay@vrfy.org>2013-06-04 23:37:57 +0200
commitbf30e48fe5c6a042f157804631d7d3817c8119fc (patch)
tree0a7c75b9da7a3208595f5b50ba3790d8821b7288 /src/libsystemd-bus/bus-kernel.c
parent311754514cd24210f9c72e0af5173d7895690e5f (diff)
bus: unmap memfd retrieved from the memfd cache
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c
index ad0d573149..ffa843d5d1 100644
--- a/src/libsystemd-bus/bus-kernel.c
+++ b/src/libsystemd-bus/bus-kernel.c
@@ -729,7 +729,7 @@ int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *size) {
return fd;
}
- c = &bus->memfd_cache[-- bus->n_memfd_cache];
+ c = &bus->memfd_cache[--bus->n_memfd_cache];
assert(c->fd >= 0);
assert(c->size == 0 || c->address);