Skip to content

Commit

Permalink
Fix #241, potential double free
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Feb 7, 2018
1 parent 27caa36 commit d514bb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,10 +1311,6 @@ static cJSON_bool print_value(const cJSON * const item, printbuffer * const outp
size_t raw_length = 0;
if (item->valuestring == NULL)
{
if (!output_buffer->noalloc)
{
output_buffer->hooks.deallocate(output_buffer->buffer);
}
return false;
}

Expand Down

0 comments on commit d514bb8

Please sign in to comment.