MCPcopy Create free account
hub / github.com/Illumina/paragraph / releaseStringValue

Function releaseStringValue

external/jsoncpp/jsoncpp.cpp:2631–2636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629 free(value);
2630}
2631static inline void releaseStringValue(char* value, unsigned length) {
2632 // length==0 => we allocated the strings memory
2633 size_t size = (length==0) ? strlen(value) : length;
2634 memset(value, 0, size);
2635 free(value);
2636}
2637#else // !JSONCPP_USING_SECURE_MEMORY
2638static inline void releasePrefixedStringValue(char* value) {
2639 free(value);

Callers 3

~CommentInfoMethod · 0.85
setCommentMethod · 0.85
~CZStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected