MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / releaseStringValue

Function releaseStringValue

json/jsoncpp.cpp:2629–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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