728x90 반응형 glibc1 glibc detected free() invalid pointer In the case of using dynamic memory allocation for application,Sometimes we faced with memory leak. =================================do(char *buf = malloc(sizeof(buf));foo(buf); free(buf);}while(1)================================= Upper code are looks fine, but when we using structure and many loop syntaxmemory leak detected from glibc in free() function. So, I tried clear buffer before free() f.. 2014. 4. 26. 이전 1 다음 728x90 반응형