MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / releaseStringValue

Function releaseStringValue

src/share/jsoncpp/jsoncpp.cpp:2610–2615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608 free(value);
2609}
2610static inline void releaseStringValue(char* value, unsigned length) {
2611 // length==0 => we allocated the strings memory
2612 size_t size = (length==0) ? strlen(value) : length;
2613 memset(value, 0, size);
2614 free(value);
2615}
2616#else // !JSONCPP_USING_SECURE_MEMORY
2617static inline void releasePrefixedStringValue(char* value) {
2618 free(value);

Callers 3

~CommentInfoMethod · 0.85
setCommentMethod · 0.85
~CZStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected