free does nothing if parameter equals NULL

This commit is contained in:
Matthias Loy 2014-08-14 20:54:35 +02:00 committed by Christopher Dunn
parent b02ff20bd3
commit fe2cd01e80

View File

@ -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