/*
remove a specific parent context from a pointer. This is a more
- controlled varient of talloc_free()
+ controlled variant of talloc_free()
*/
int talloc_unlink(const void *context, void *ptr)
{
static int talloc_destroy_pointer(void ***pptr)
{
- if ((uintptr_t)**pptr < getpagesize())
+ if ((uintptr_t)**pptr < (uintptr_t)sysconf(_SC_PAGESIZE))
TALLOC_ABORT("Double free or invalid talloc_set?");
/* Invalidate pointer so it can't be used again. */
**pptr = (void *)1;