BSON_ZERO_FREE(3)

NAME
bson_zero_free()

SYNOPSIS
void
bson_zero_free (void  *mem,
                size_t size);

PARAMETERS

.B mem
    A memory region.

.B size
    The size of mem .

DESCRIPTION
This function behaves like bson_free(3) except that it zeroes the memory first. This can be useful if you are storing passwords or other similarly important data. Note that if it truely is important, you probably want an mlock()

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.