From 133d106e07665ceb3eb468e55131bc4177406a6e Mon Sep 17 00:00:00 2001 From: Hongbo Yin Date: Wed, 28 Feb 2024 17:44:14 +0800 Subject: [PATCH] remove code can never be reached(DEADCODE) Signed-off-by: Hongbo Yin --- cJSON.c | 5 ----- 1 file changed, 5 deletions(-) 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; }