5 years, 2 months ago.

malloc hangs

I'm getting a weird hang on the following line of 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?


Be the first to answer this question.