False Positives: _mm_malloc and _mm_free

False Positives: _mm_malloc and _mm_free

Good day. Just started using Inspector (Update 2 build 550070).
After running Locate Memory Problems I always get false positives for _mm_malloc (memory leak) and _mm_free (missing allocation).

To verify the following code also reports false positives:

unsigned char *hostPtr = (unsigned char*)_mm_malloc((((1280 * 960) * sizeof(unsigned char)) + 63) & (-64), 4096);
hostPtr[100] = 0xFF;
_mm_free(hostPtr);

I don't want to just suppress the errors since to me it looks like Inspector should handle this correctly. Tested with malloc and free and Inspector works as expected.

How do I resolve this?
 

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Anyone looked into this yet?

Leave a Comment

Please sign in to add a comment. Not a member? Join today