René's URL Explorer Experiment


Title: potential memory leak in `simplecpp::Macro::parseDefine()` · Issue #498 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: potential memory leak in `simplecpp::Macro::parseDefine()` · Issue #498 · cppcheck-opensource/simplecpp

X Title: potential memory leak in `simplecpp::Macro::parseDefine()` · Issue #498 · cppcheck-opensource/simplecpp

Description: #define e(...)__VA_OPT__() #define e ================================================================= ==81939==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x7f06549218cd in ope...

Open Graph Description: #define e(...)__VA_OPT__() #define e ================================================================= ==81939==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) ...

X Description: #define e(...)__VA_OPT__() #define e ================================================================= ==81939==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) ...

Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/498

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"potential memory leak in `simplecpp::Macro::parseDefine()`","articleBody":"```cpp\n#define e(...)__VA_OPT__()\n#define e\n```\n\n```\n=================================================================\n==81939==ERROR: LeakSanitizer: detected memory leaks\n\nDirect leak of 72 byte(s) in 1 object(s) allocated from:\n    #0 0x7f06549218cd in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete.cpp:86\n    #1 0x557c86ba8e86 in simplecpp::Macro::parseDefine(simplecpp::Token const*) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1784\n    #2 0x557c86ba4d01 in simplecpp::Macro::operator=(simplecpp::Macro const\u0026) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1517\n    #3 0x557c86ba4a98 in simplecpp::Macro::Macro(simplecpp::Macro const\u0026) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1504\n    #4 0x557c86bf1fb4 in std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro, true\u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/stl_pair.h:924\n    #5 0x557c86be3388 in void std::__new_allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e::construct\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e*, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/new_allocator.h:191\n    #6 0x557c86be3388 in void std::allocator_traits\u003cstd::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e \u003e::construct\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e\u0026, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e*, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/alloc_traits.h:674\n    #7 0x557c86be3388 in std::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e* std::__detail::_Hashtable_alloc\u003cstd::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e \u003e::_M_allocate_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable_policy.h:1556\n    #8 0x557c86bd76fd in std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e std::_Hashtable\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e, std::__detail::_Select1st, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits\u003ctrue, false, true\u003e \u003e::_M_emplace_uniq\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable.h:2362\n    #9 0x557c86bc9494 in std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e std::_Hashtable\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e, std::__detail::_Select1st, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits\u003ctrue, false, true\u003e \u003e::emplace\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable.h:1029\n    #10 0x557c86bbafee in std::enable_if\u003cstd::is_constructible\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026\u003e::value, std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e \u003e::type std::unordered_map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e \u003e::insert\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/unordered_map.h:618\n    #11 0x557c86b947b7 in simplecpp::preprocess(simplecpp::TokenList\u0026, simplecpp::TokenList const\u0026, std::vector\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e \u003e\u0026, simplecpp::FileDataCache\u0026, simplecpp::DUI const\u0026, std::__cxx11::list\u003csimplecpp::Output, std::allocator\u003csimplecpp::Output\u003e \u003e*, std::__cxx11::list\u003csimplecpp::MacroUsage, std::allocator\u003csimplecpp::MacroUsage\u003e \u003e*, std::__cxx11::list\u003csimplecpp::IfCond, std::allocator\u003csimplecpp::IfCond\u003e \u003e*) /home/user/CLionProjects/simplecpp/simplecpp.cpp:3414\n    #12 0x557c86b6eb6a in main /home/user/CLionProjects/simplecpp/main.cpp:135\n    #13 0x7f0654027674  (/usr/lib/libc.so.6+0x27674) (BuildId: 1d7c9b9187cec4c03a504fccc917f9af55568a53)\n    #14 0x7f0654027728 in __libc_start_main (/usr/lib/libc.so.6+0x27728) (BuildId: 1d7c9b9187cec4c03a504fccc917f9af55568a53)\n    #15 0x557c86b6d774 in _start (/home/user/CLionProjects/simplecpp/simplecpp+0xe774) (BuildId: 32b8d171be6d124ca8afde184e974602f1894063)\n\nDirect leak of 72 byte(s) in 1 object(s) allocated from:\n    #0 0x7f06549218cd in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete.cpp:86\n    #1 0x557c86ba8e17 in simplecpp::Macro::parseDefine(simplecpp::Token const*) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1783\n    #2 0x557c86ba4d01 in simplecpp::Macro::operator=(simplecpp::Macro const\u0026) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1517\n    #3 0x557c86ba4a98 in simplecpp::Macro::Macro(simplecpp::Macro const\u0026) /home/user/CLionProjects/simplecpp/simplecpp.cpp:1504\n    #4 0x557c86bf1fb4 in std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro, true\u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/stl_pair.h:924\n    #5 0x557c86be3388 in void std::__new_allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e::construct\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e*, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/new_allocator.h:191\n    #6 0x557c86be3388 in void std::allocator_traits\u003cstd::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e \u003e::construct\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e\u0026, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e*, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/alloc_traits.h:674\n    #7 0x557c86be3388 in std::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e* std::__detail::_Hashtable_alloc\u003cstd::allocator\u003cstd::__detail::_Hash_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, true\u003e \u003e \u003e::_M_allocate_node\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable_policy.h:1556\n    #8 0x557c86bd76fd in std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e std::_Hashtable\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e, std::__detail::_Select1st, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits\u003ctrue, false, true\u003e \u003e::_M_emplace_uniq\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable.h:2362\n    #9 0x557c86bc9494 in std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e std::_Hashtable\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e, std::__detail::_Select1st, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits\u003ctrue, false, true\u003e \u003e::emplace\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/hashtable.h:1029\n    #10 0x557c86bbafee in std::enable_if\u003cstd::is_constructible\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026\u003e::value, std::pair\u003cstd::__detail::_Node_iterator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e, false, true\u003e, bool\u003e \u003e::type std::unordered_map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e const, simplecpp::Macro\u003e \u003e \u003e::insert\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e \u003e(std::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, simplecpp::Macro\u003e\u0026\u0026) /usr/include/c++/15.1.1/bits/unordered_map.h:618\n    #11 0x557c86b947b7 in simplecpp::preprocess(simplecpp::TokenList\u0026, simplecpp::TokenList const\u0026, std::vector\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar\u003e, std::allocator\u003cchar\u003e \u003e \u003e \u003e\u0026, simplecpp::FileDataCache\u0026, simplecpp::DUI const\u0026, std::__cxx11::list\u003csimplecpp::Output, std::allocator\u003csimplecpp::Output\u003e \u003e*, std::__cxx11::list\u003csimplecpp::MacroUsage, std::allocator\u003csimplecpp::MacroUsage\u003e \u003e*, std::__cxx11::list\u003csimplecpp::IfCond, std::allocator\u003csimplecpp::IfCond\u003e \u003e*) /home/user/CLionProjects/simplecpp/simplecpp.cpp:3414\n    #12 0x557c86b6eb6a in main /home/user/CLionProjects/simplecpp/main.cpp:135\n    #13 0x7f0654027674  (/usr/lib/libc.so.6+0x27674) (BuildId: 1d7c9b9187cec4c03a504fccc917f9af55568a53)\n    #14 0x7f0654027728 in __libc_start_main (/usr/lib/libc.so.6+0x27728) (BuildId: 1d7c9b9187cec4c03a504fccc917f9af55568a53)\n    #15 0x557c86b6d774 in _start (/home/user/CLionProjects/simplecpp/simplecpp+0xe774) (BuildId: 32b8d171be6d124ca8afde184e974602f1894063)\n\nSUMMARY: AddressSanitizer: 144 byte(s) leaked in 2 allocation(s).\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-08-15T14:48:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/498/simplecpp/issues/498"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6e286239-3f26-9ad7-9f14-f9eb09e488eb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF7E:C8AE2:289D746:37F876E:6A4EFA4D
html-safe-nonce61e6969e143eb4e981301bef613a5e279e78a69ed5f97c18285a74c660c55fc5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjdFOkM4QUUyOjI4OUQ3NDY6MzdGODc2RTo2QTRFRkE0RCIsInZpc2l0b3JfaWQiOiI1NDQwMDUyNjIxNjczOTUzODcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac60bd385b239094039e4ec0a98aa6d3a561bb261fe14e3ea317d09799b6ee3748
hovercard-subject-tagissue:3325479117
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/498/issue_layout
twitter:imagehttps://opengraph.githubassets.com/31e4a712887a55e7fe6ab0e98619ec603c292dc5abf6946b63f2f0f95748dd62/cppcheck-opensource/simplecpp/issues/498
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31e4a712887a55e7fe6ab0e98619ec603c292dc5abf6946b63f2f0f95748dd62/cppcheck-opensource/simplecpp/issues/498
og:image:alt#define e(...)__VA_OPT__() #define e ================================================================= ==81939==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefirewave
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id33434464
octolytics-dimension-repository_nwocppcheck-opensource/simplecpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33434464
octolytics-dimension-repository_network_root_nwocppcheck-opensource/simplecpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/issues/498#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2F498
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2F498
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cppcheck-opensource%2Fsimplecpp
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/498
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/498
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/498
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/issues/498
cppcheck-opensource https://github.com/cppcheck-opensource
simplecpphttps://github.com/cppcheck-opensource/simplecpp
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Fork 104 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Star 263 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Code https://github.com/cppcheck-opensource/simplecpp
Issues 82 https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests 31 https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality 0 https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
Code https://github.com/cppcheck-opensource/simplecpp
Issues https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
potential memory leak in simplecpp::Macro::parseDefine()https://github.com/cppcheck-opensource/simplecpp/issues/498#top
https://github.com/firewave
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/firewave
firewavehttps://github.com/firewave
on Aug 15, 2025https://github.com/cppcheck-opensource/simplecpp/issues/498#issue-3325479117
firewavehttps://github.com/firewave
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.