MCPcopy Create free account
hub / github.com/TuGraph-family/tugraph-db / dealloc_buffer

Function dealloc_buffer

src/lgraph_api/lgraph_utils.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void dealloc_buffer(void* buffer, size_t bytes) {
177#if USE_VALGRIND
178 free(buffer);
179#else
180 int error = munmap(buffer, bytes);
181 if (error != 0) {
182 fprintf(stderr, "warning: potential memory leak!\n");
183 }
184#endif
185}
186
187size_t GetVidFromNodeString(const std::string& node_string) {
188 // node_string format: V[{id}]

Callers 7

TEST_FFunction · 0.85
InitMethod · 0.85
~StringTextFileReaderMethod · 0.85
~TextFileReaderMethod · 0.85
~BinaryFileReaderMethod · 0.85
ArrayTextReaderMethod · 0.85
ArrayBinaryReaderMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68