miscellaneous
This commit is contained in:
parent
7138acc056
commit
d02753efb0
4
main.cpp
4
main.cpp
@ -417,7 +417,7 @@ int init(char *fileName) {
|
|||||||
solve(moves, board);
|
solve(moves, board);
|
||||||
// --- ALGORITHM END ---
|
// --- ALGORITHM END ---
|
||||||
|
|
||||||
// --- CLEANUP START ---
|
// --- MEMORY CLEANUP START ---
|
||||||
dealloc(fileInpPtr);
|
dealloc(fileInpPtr);
|
||||||
deallocBoard(board, moves.x);
|
deallocBoard(board, moves.x);
|
||||||
fclose(inp);
|
fclose(inp);
|
||||||
@ -426,7 +426,7 @@ int init(char *fileName) {
|
|||||||
pter "Memory leak detected" << nl;
|
pter "Memory leak detected" << nl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
// --- CLEANUP END ---
|
// --- MEMORY CLEANUP END ---
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user