diff options
author | Daniel Mack <zonque@gmail.com> | 2013-10-24 16:49:41 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2013-10-24 16:49:41 +0100 |
commit | 88e496777e731f377d3435ff9930e72f2547ca35 (patch) | |
tree | 6a5207dcd1c52037d62fe04dd6943b643b7ad2d5 /test | |
parent | 840672542b03ff029b8ed56b50ceefcfeca32291 (diff) | |
download | kdbus-bus-88e496777e731f377d3435ff9930e72f2547ca35.tar.gz kdbus-bus-88e496777e731f377d3435ff9930e72f2547ca35.tar.bz2 kdbus-bus-88e496777e731f377d3435ff9930e72f2547ca35.zip |
test/monitor: close passed-in memfds
Diffstat (limited to 'test')
-rw-r--r-- | test/test-kdbus-monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-kdbus-monitor.c b/test/test-kdbus-monitor.c index c95bcf44793..49fe84caa2a 100644 --- a/test/test-kdbus-monitor.c +++ b/test/test-kdbus-monitor.c @@ -88,6 +88,9 @@ static int dump_packet(struct conn *conn, int fd) size = write(fd, item, item->size); if (size != item->size) return EXIT_FAILURE; + + if (item->type == KDBUS_MSG_PAYLOAD_MEMFD) + close(item->memfd.fd); } ret = ioctl(conn->fd, KDBUS_CMD_MSG_RELEASE, &off); |