Browse Source

fix: potential memory leak in merge_patch() (#611)

pull/434/merge
Alan Wang 3 months ago
committed by GitHub
parent
commit
f50dafc7d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      cJSON_Utils.c

1
cJSON_Utils.c

@ -1367,6 +1367,7 @@ static cJSON *merge_patch(cJSON *target, const cJSON * const patch, const cJSON_
replacement = merge_patch(replace_me, patch_child, case_sensitive);
if (replacement == NULL)
{
cJSON_Delete(target);
return NULL;
}

Loading…
Cancel
Save