MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / array_free

Function array_free

src/util/arr.h:239–244  ·  view source on GitHub ↗

Free the array, without dealing with individual elements */

Source from the content-addressed store, hash-verified

237
238/* Free the array, without dealing with individual elements */
239static void array_free(array_t arr) {
240 if(arr != NULL) {
241 // like free(), shouldn't explode if NULL
242 array_free_fn(array_hdr(arr));
243 }
244}
245
246#define array_clear(arr) array_hdr(arr)->len = 0
247

Callers 15

_DeleteGraphMetaKeysFunction · 0.85
Globals_FreeFunction · 0.85
FilterTreeToQueryNodeFunction · 0.85
UndoLog_FreeOpFunction · 0.85
ResultSet_FreeFunction · 0.85
GraphDecodeContext_ResetFunction · 0.85
GraphDecodeContext_FreeFunction · 0.85
RdbSaveGraph_v13Function · 0.85
_RdbSaveConstraintsDataFunction · 0.85
RdbLoadGraphContext_v13Function · 0.85

Calls

no outgoing calls

Tested by 15

test_BothDirectionsFunction · 0.68
test_SingleNodeFunction · 0.68
test_ShareableEntityFunction · 0.68
test_VariableLengthFunction · 0.68
test_ExpressionExecuteFunction · 0.68
test_BFSLevelsFunction · 0.68
test_createClauseFunction · 0.68
test_matchClauseFunction · 0.68