Memory Leaks in Map Parsing with Invalid Color and Texture Configurations
Bug Description
○bad
・/color_invalid_rgb.cub メモリリーク
% valgrind ./cub3D ./assets/maps/test1.cub
==311364== definitely lost: 130 bytes in 4 blocks
・color_missing.cub
フロアのRGBがないときに動いてしまう
・color_missing_ceiling_rgb.cub メモリリーク
==317220== definitely lost: 130 bytes in 4 blocks
・color_missing_floor_rgb.cub メモリリーク
==317794== definitely lost: 130 bytes in 4 blocks
・color_none.cub
F 20,20
C 200,200,200
ここの部分がなくても動いてしまう\
・file_letter_end.cub
立方体のジオメトリの端を超えたときに動いてしまう?
・filetype_missing メモリリーク
NO ./assets/textures/northwall.xpm
と変更したときに
==322772== definitely lost: 465 bytes in 7 blocks
==322772== indirectly lost: 1,310 bytes in 16 blocks
==322772== possibly lost: 0 bytes in 0 blocks
==322772== still reachable: 90,838 bytes in 64 blocks
==322772== suppressed: 0 bytes in 0 blocks
==322772== Rerun with --leak-check=full to see details of leaked memory
・filetype_wrong.buc メモリリーク
NO./assets/textures/north_wall.xpm
と変更したときに
==324276== LEAK SUMMARY:
==324276== definitely lost: 433 bytes in 6 blocks
==324276== indirectly lost: 1,310 bytes in 16 blocks
==324276== possibly lost: 0 bytes in 0 blocks
==324276== still reachable: 90,838 bytes in 64 blocks
==324276== suppressed: 0 bytes in 0 blocks
==324276== Rerun with --leak-check=full to see details of leaked memory
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.41
- Feedback ID: 9313bbd7-95df-4b5d-92ad-1a69e7bb7a58
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:883:11)\n at execSync (node:child_process:955:15)\n at JI (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n at file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n at Q (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at _X (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n at w_ (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n at U9 (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-03T08:11:18.313Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at wY (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1489:1184)\n at file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1489:912\n at Array.map (<anonymous>)\n at AH (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1489:903)\n at uT2 (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1958:9690)\n at ZU (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19802)\n at UP (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42556)\n at wP (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38105)\n at o$ (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38033)\n at MU (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:37887)","timestamp":"2025-07-03T08:12:56.969Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1387:418\n at Object.useMemo (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:26275)\n at qE9.useMemo (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:46:15576)\n at xW (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1387:312)\n at ZU (file:///Users/kizuna/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗