DaveGamble / cJSON

Ultralightweight JSON parser in ANSI C
MIT License
10.68k stars 3.21k forks source link

Set deallocated pointers to NULL whenever they are not reassigned immediately after #842

Closed maebex closed 4 months ago

maebex commented 6 months ago

Fixes DaveGamble/cJSON#833

Alanscut commented 5 months ago

Hi @maebex Thanks for your contribution. Maybe we can have some tests along with your fix?

Alanscut commented 4 months ago

Awww I didn't notice this PR was pushing to branch develop.

Alanscut commented 4 months ago

Hi @maebex

I cherry-picked your commit to branch master and added some tests.

Please take a look at #855