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

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

From: Mikhail Gusarov <dottedmag_at_dottedmag.net>
Date: Sun, 10 Jan 2010 05:37:10 +0600

Twas brillig at 00:29:11 10.01.2010 UTC+01 when daniel_at_haxx.se did gyre and gimble:

 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.

-- 
  http://fossarchy.blogspot.com/

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2010-01-10