稍微优化

This commit is contained in:
2025-01-15 15:30:12 +08:00
parent 3b902877b5
commit a79a59bd97
3 changed files with 26 additions and 8 deletions

17
ip2region/a.out.valgrind Normal file
View File

@@ -0,0 +1,17 @@
root@NIUYULING:/mnt/c/Users/root/Desktop/git.aixiao.me/DenyIP/ip2region# /usr/bin/valgrind --tool=memcheck --leak-check=full --show-reachable=yes --main-stacksize=8388608 --track-origins=yes ./a.out
==239839== Memcheck, a memory error detector
==239839== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==239839== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==239839== Command: ./a.out
==239839==
澳大利亚|0|0|0|0
==239839==
==239839== HEAP SUMMARY:
==239839== in use at exit: 0 bytes in 0 blocks
==239839== total heap usage: 7 allocs, 7 frees, 534,473 bytes allocated
==239839==
==239839== All heap blocks were freed -- no leaks are possible
==239839==
==239839== For lists of detected and suppressed errors, rerun with: -s
==239839== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
root@NIUYULING:/mnt/c/Users/root/Desktop/git.aixiao.me/DenyIP/ip2region#