summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/sd-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-05-17 02:32:32 +0200
committerLennart Poettering <lennart@poettering.net>2013-05-17 04:26:27 +0200
commit63edf05ed9c1d4cb5cf9364e734b2a96f84622d0 (patch)
tree12c3bb838f87046c52f11b4b248642937e5daa83 /src/libsystemd-bus/sd-bus.c
parentf54514f3542db9b1f1a6f7546472718ce0d02aae (diff)
bus: actually unmap kdbus pool after use
Diffstat (limited to 'src/libsystemd-bus/sd-bus.c')
-rw-r--r--src/libsystemd-bus/sd-bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 08ab202baf..b0730d4954 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -26,6 +26,7 @@
#include <netdb.h>
#include <sys/poll.h>
#include <byteswap.h>
+#include <sys/mman.h>
#include "util.h"
#include "macro.h"
@@ -64,6 +65,9 @@ static void bus_free(sd_bus *b) {
bus_close_fds(b);
+ if (b->kdbus_buffer)
+ munmap(b->kdbus_buffer, KDBUS_POOL_SIZE);
+
free(b->rbuffer);
free(b->unique_name);
free(b->auth_buffer);