Subject: Re: Libssh2: Memory Allocation Failure

Re: Libssh2: Memory Allocation Failure

From: Dan Fandrich <>
Date: Thu, 9 Sep 2010 19:45:56 -0700

On Thu, Sep 09, 2010 at 07:31:39PM -0700, Paul Romero wrote:
> In your opinion, does using libssh_exit() at the end of a transaction
> make a difference ?

libssh2_exit is practically a no-op in the current implementation,
so calling it won't make any difference to memory usage. But tearing
down and closing all connections between operations would give the
memory allocator a chance to combine more memory blocks and free up
more contiguous space.

>>> Dan
Received on 2010-09-10