1BSON_ZERO_FREE(3) libbson BSON_ZERO_FREE(3)
2
3
4
6 void
7 bson_zero_free (void *mem, size_t size);
8
10 • mem: A memory region.
11
12 • size: The size of mem.
13
15 This function behaves like bson_free() except that it zeroes the memory
16 first. This can be useful if you are storing passwords or other simi‐
17 larly important data. Note that if it truly is important, you probably
18 want a page protected with mlock() as well to prevent it swapping to
19 disk.
20
22 MongoDB, Inc
23
25 2017-present, MongoDB, Inc
26
27
28
29
301.25.1 Nov 08, 2023 BSON_ZERO_FREE(3)