MCPcopy Create free account
hub / github.com/PlayFab/gsdk / releaseStringValue

Function releaseStringValue

cpp/cppsdk/jsoncpp.cpp:2627–2632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

~CommentInfoMethod · 0.85
setCommentMethod · 0.85
~CZStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected