diff --git a/cJSON.c b/cJSON.c index 4e4979e9..e436b387 100644 --- a/cJSON.c +++ b/cJSON.c @@ -1245,11 +1245,6 @@ static unsigned char *print(const cJSON * const item, cJSON_bool format, const i hooks->deallocate(buffer->buffer); } - if (printed != NULL) - { - hooks->deallocate(printed); - } - return NULL; }