MCPcopy Create free account
hub / github.com/Kitware/CMake / releasePrefixedStringValue

Function releasePrefixedStringValue

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 */
166#if JSONCPP_USING_SECURE_MEMORY
167static inline void releasePrefixedStringValue(char* value) {
168 unsigned length = 0;
169 char const* valueDecoded;
170 decodePrefixedString(true, value, &length, &valueDecoded);
171 size_t const size = sizeof(unsigned) + length + 1U;
172 memset(value, 0, size);
173 free(value);
174}
175static inline void releaseStringValue(char* value, unsigned length) {
176 // length==0 => we allocated the strings memory
177 size_t size = (length == 0) ? strlen(value) : length;

Callers 1

releasePayloadMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…