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