curl-library
Re: Code cleanup in lib/ssh.c
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Feb 2008 16:45:57 +0100 (CET)
Date: Tue, 19 Feb 2008 16:45:57 +0100 (CET)
On Tue, 19 Feb 2008, Yang Tse wrote:
> Is someone planning to give some use to LIBSSH2_ALLOC_FUNC()
> LIBSSH2_REALLOC_FUNC() and LIBSSH2_FREE_FUNC() static functions in lib/ssh.c
> ?
>
> Up to date that they have never been used internally, so probably nobody
> cares, but just in case...
They're used in the libssh2_init_ex() call. I'd say the main (and only?)
benefit of doing it like that is that we get libssh2's memory allocations and
frees covered by our own memory debugging system for the test suite etc.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-02-19