warning C6308 in Visual Studio 2019
chitalu opened this issue · comments
Hi,
The following warning is being reported in Microsoft Visual Studio Community 2019 (Version 16.6.5):
Warning C6308 'realloc' might return null pointer: assigning null pointer to 'utest_state.tests', which is passed as an argument to 'realloc', will cause the original memory block to be leaked.
The warning is reported for every test cases associated with an explicitly-defined fixture.
Can you help to resolve this warning? (For a cleaner build log)
Thanks.
P.S. We're using utest in MCUT (https://cutdigital.github.io/mcut.github.io/)
I'll have a look aye. I wonder why my testing is not picking this up!
Thank you.