7 years, 1 month ago.

malloc hangs

I'm getting a weird hang on the following line of code:

code

uint32_t* newArr = (uint32_t*)malloc(newSize*4);

where newSize is an int, and in my testing it is almost always 2 when it hangs. Does anybody know what might be causing this or any suggestions on what to try?

Thanks!

Be the first to answer this question.