MCPcopy Create free account
hub / github.com/SOUI2/soui / releaseStringValue

Function releaseStringValue

third-part/jsoncpp/src/lib_json/json_value.cpp:162–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 free(value);
161}
162static inline void releaseStringValue(char* value, unsigned length) {
163 // length==0 => we allocated the strings memory
164 size_t size = (length==0) ? strlen(value) : length;
165 memset(value, 0, size);
166 free(value);
167}
168#else // !JSONCPP_USING_SECURE_MEMORY
169static inline void releasePrefixedStringValue(char* value) {
170 free(value);

Callers 3

~CommentInfoMethod · 0.85
setCommentMethod · 0.85
~CZStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected