Hi, some of the bindings may try to malloc with 0 bytes as size when closing an handle, because there were no event handlers registered. Since this can have different behaviours in POSIX, avoid that situation altogether by just skipping allocating anything when there were no event handlers. Thanks, Pino Toscano (4): ocaml: do not try to malloc 0 elements in get_all_event_callbacks python: do not try to malloc 0 elements in get_all_event_callbacks ruby: do not try to malloc 0 elements in get_all_event_callbacks java: do not try to malloc 0 elements in get_all_event_callbacks java/handle.c | 17 ++++++++++++----- ocaml/guestfs-c.c | 17 ++++++++++++----- python/handle.c | 22 +++++++++++++++++----- ruby/ext/guestfs/handle.c | 17 ++++++++++++----- 4 files changed, 53 insertions(+), 20 deletions(-) -- 2.9.3