History log of /netbsd-src/lib/libc/stdlib/tdelete.c (Results 1 – 8 of 8)
Revision Date Author Comments
# e17fe16c 20-Jan-2016 christos <christos@NetBSD.org>

Don't return NULL when we are freeing the root node; return a free'd pointer
instead.


# 2e3cfa46 20-Jan-2016 christos <christos@NetBSD.org>

PR/50681: Markiyan Kushnir: Fix memory leak when we delete the root node.
It is questionable if we should return NULL in that case, but what is the
parent of root? The new adjusted root?


# 9e66e6d7 25-Jun-2012 abs <abs@NetBSD.org>

Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)


# 67d513dd 18-May-2011 dsl <dsl@NetBSD.org>

Remove __P()


# 7ac99498 19-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 2528: Don't delete the node we are about to return.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 7975455d 22-Feb-1999 christos <christos@NetBSD.org>

t{search,find,walk,delete} from OpenBSD via Neil A. Carson