在C/C++ 語言中,如果有人用malloc()/new() 等函數分配了記憶體,卻忘了 ... 編譯檔案,必須加上-g除錯訊息 gcc -g -o leak leak.c; valgrind --leak-check=full .
確定! 回上一頁