MCPcopy Create free account
hub / github.com/Samsung/ONE / releasePrefixedStringValue

Function releasePrefixedStringValue

runtime/3rdparty/jsoncpp/jsoncpp.cpp:2812–2820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810 */
2811#if JSONCPP_USING_SECURE_MEMORY
2812static inline void releasePrefixedStringValue(char *value)
2813{
2814 unsigned length = 0;
2815 char const *valueDecoded;
2816 decodePrefixedString(true, value, &length, &valueDecoded);
2817 size_t const size = sizeof(unsigned) + length + 1U;
2818 memset(value, 0, size);
2819 free(value);
2820}
2821static inline void releaseStringValue(char *value, unsigned length)
2822{
2823 // length==0 => we allocated the strings memory

Callers 1

releasePayloadMethod · 0.85

Calls 2

decodePrefixedStringFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected