MCPcopy Create free account
hub / github.com/documentdb/documentdb / PgbsonFreeIfNotNull

Function PgbsonFreeIfNotNull

pg_documentdb_core/include/io/pgbson.h:140–147  ·  view source on GitHub ↗

* Free pgbson value if not null. */

Source from the content-addressed store, hash-verified

138 * Free pgbson value if not null.
139 */
140static inline void
141PgbsonFreeIfNotNull(pgbson *value)
142{
143 if (value != NULL)
144 {
145 pfree(value);
146 }
147}
148
149
150/*

Callers 3

BsonUpdateDocumentCoreFunction · 0.85
bson_densify_fullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected