Daily snapshots |
Mailing list archive |
This month's Index
Re: Memory leak on mac
On Wednesday, February 17, 2016 16:04:06 Velichko Yuriy wrote:
> In the attached archive an example based on libssh2 docs:
> In the attached code the port forwarding is implemented. In the infinity
> loop we preforms port forwarding of the PostgreSQL port on the remote
> computer. In the end of the loop all resources are freeing.
> But memory increases constantly.
> I think that I'm doing something wrong. Tell me please what exactly? )
Your code does not seem to handle LIBSSH2_ERROR_EAGAIN coming out
of libssh2_channel_free() and libssh2_session_free(). It should.
Received on 2016-02-17
the libssh2 team