Modify a BUG of free() function when compiling main.cpp