krb5_free_data

Greg Hudson ghudson at MIT.EDU
Sat Jun 21 18:36:21 EDT 2014


On 06/21/2014 05:17 PM, Markus Moeller wrote:
> Sorry I do not understand. Right now I get crashes as val->data is NULL.

free(NULL) does not crash.  See section 7.20.3.2 of:

    http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

or:

    http://pubs.opengroup.org/onlinepubs/009695399/functions/free.html

We make this assumption all over the krb5 code base, as do many other
programs.  Perhaps the crashes you are seeing have another cause?


More information about the krbdev mailing list