mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 23:07:55 +02:00
free does nothing if parameter equals NULL
This commit is contained in:

committed by
Christopher Dunn

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
|
||||
|
Reference in New Issue
Block a user