1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

Fix a memleak on event poll contexts

This commit is contained in:
milo
2011-04-14 13:29:33 +02:00
parent 23b28a573c
commit 42315772b2

View File

@@ -897,6 +897,8 @@ int ssh_event_remove_fd(ssh_event event, socket_t fd) {
if(fd == event->ctx->pollfds[i].fd) {
p = event->ctx->pollptrs[i];
ssh_poll_ctx_remove(event->ctx, p);
free(p->cb_data);
ssh_poll_free(p);
rc = SSH_OK;
/* restart the loop */
used = event->ctx->polls_used;