MCPcopy Create free account
hub / github.com/Samsung/UTopia / releaseStringValue

Function releaseStringValue

external/jsoncpp/jsoncpp.cpp:2574–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2572 free(value);
2573}
2574static inline void releaseStringValue(char *value, unsigned length) {
2575 // length==0 => we allocated the strings memory
2576 size_t size = (length == 0) ? strlen(value) : length;
2577 memset(value, 0, size);
2578 free(value);
2579}
2580#else // !JSONCPP_USING_SECURE_MEMORY
2581static inline void releasePrefixedStringValue(char *value) { free(value); }
2582static inline void releaseStringValue(char *value, unsigned) { free(value); }

Callers 1

~CZStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected