talloc:documentation - explain that "talloc_free" works also with "NULL" pointers
commit2de63aa2801a907905b3e05557074af5b896d486
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 14 Aug 2010 16:36:49 +0000 (14 18:36 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 14 Aug 2010 16:48:20 +0000 (14 18:48 +0200)
tree728094b47b5b26c0c073bf927db3c0443148d142
parent07af3f289e403396a9ddef744cf42e2badc1f1cc
talloc:documentation - explain that "talloc_free" works also with "NULL" pointers

(talloc.c)
...
> static inline int _talloc_free_internal(void *ptr, const char *location)
> {
>        struct talloc_chunk *tc;
>
>        if (unlikely(ptr == NULL)) {
>                return -1;
>        }
>
>        tc = talloc_chunk_from_ptr(ptr);
...

Obviously this never had been documented before.
lib/talloc/talloc.h
lib/talloc/talloc_guide.txt