Subject: Re: libssh2 master e48907e... avoid a free(NULL)

Re: libssh2 master e48907e... avoid a free(NULL)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 10 Jan 2010 18:42:38 +0100 (CET)

On Sun, 10 Jan 2010, Mikhail Gusarov wrote:

> DS> I think the fact that this might call a callback that replaces free makes
> DS> the question a little wider than just the fact that free(NULL) is fine.
>
> Yep. It would be useful to declare that user-provided free function won't be
> called with NULL argument from library code.

Uhm, in fact the man page that covers those callbacks is lacking a lot! ;-/

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-10