mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 07:41:07 +01:00
free does nothing if parameter equals NULL
This commit is contained in:
parent
b02ff20bd3
commit
fe2cd01e80
@ -105,8 +105,7 @@ static inline char *duplicateStringValue(const char *value,
|
||||
/** Free the string duplicated by duplicateStringValue().
|
||||
*/
|
||||
static inline void releaseStringValue(char *value) {
|
||||
if (value)
|
||||
free(value);
|
||||
free(value);
|
||||
}
|
||||
|
||||
} // namespace Json
|
||||
|
Loading…
x
Reference in New Issue
Block a user