We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I think I found a memory leak in cJSON_ReplaceItemInObject:
.... if(c) { //THESE LINES SHOULD PREVENT THE LEAK if (!(newitem->type & cJSON_StringIsConst) && newitem->string) { cJSON_free(newitem->string); } newitem->string = cJSON_strdup(string); cJSON_ReplaceItemInArray(object, i, newitem);
Thanks, Diego.
The text was updated successfully, but these errors were encountered:
Yes, that is a memory leak! Good catch, thanks for reporting this.
Sorry, something went wrong.
Actually there's more, I just found another one. or not.
0d10e27
I've just started using the library for a project. If I find another one, I'll report it.
Thanks!
Diego.
No branches or pull requests
Hi, I think I found a memory leak in cJSON_ReplaceItemInObject:
Thanks,
Diego.
The text was updated successfully, but these errors were encountered: