cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit d514bb866ef9d7d8ab394fbce5168c3b45f7c504
parent 27caa364b0d05d4f2dbd51f2a3ff8be58d35cae1
Author: Max Bruckner <max@maxbruckner.de>
Date:   Wed,  7 Feb 2018 19:36:59 +0100

Fix #241, potential double free

Diffstat:
McJSON.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/cJSON.c b/cJSON.c @@ -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; }