Title: memory leak when processing empty/non-existent includes with `simplecpp` CLI · Issue #342 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: memory leak when processing empty/non-existent includes with `simplecpp` CLI · Issue #342 · cppcheck-opensource/simplecpp
X Title: memory leak when processing empty/non-existent includes with `simplecpp` CLI · Issue #342 · cppcheck-opensource/simplecpp
Description: #include\\> #include\\> ==58215==ERROR: LeakSanitizer: detected memory leaks Direct leak of 144 byte(s) in 2 object(s) allocated from: #0 0x7ff948ae2002 in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new...
Open Graph Description: #include\\> #include\\> ==58215==ERROR: LeakSanitizer: detected memory leaks Direct leak of 144 byte(s) in 2 object(s) allocated from: #0 0x7ff948ae2002 in operator new(unsigned long) /usr/src/...
X Description: #include</\\> #include</\\> ==58215==ERROR: LeakSanitizer: detected memory leaks Direct leak of 144 byte(s) in 2 object(s) allocated from: #0 0x7ff948ae2002 in operator new(unsigned lon...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/342
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"memory leak when processing empty/non-existent includes with `simplecpp` CLI","articleBody":"```cpp\r\n#include\u003c/\\\\\u003e\r\n#include\u003c/\\\\\u003e\r\n```\r\n\r\n```\r\n==58215==ERROR: LeakSanitizer: detected memory leaks\r\n\r\nDirect leak of 144 byte(s) in 2 object(s) allocated from:\r\n #0 0x7ff948ae2002 in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete\u003e\r\n #1 0x56404715371a in simplecpp::load(simplecpp::TokenList const\u0026, std::vector\u003cstd::__cxx11::basic_string\u003c\u003e\r\n\r\nDirect leak of 72 byte(s) in 1 object(s) allocated from:\r\n #0 0x7ff948ae2002 in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete\u003e\r\n #1 0x564047162412 in simplecpp::preprocess(simplecpp::TokenList\u0026, simplecpp::TokenList const\u0026, std::vecto\u003e\r\n\r\nSUMMARY: AddressSanitizer: 216 byte(s) leaked in 3 allocation(s).\r\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2024-02-22T18:27:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/342/simplecpp/issues/342"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83c0e063-8cfb-c383-f0fe-1e5c30538d98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C96:A6D52:13B5EB3:1AED82C:6A4EFA04 |
| html-safe-nonce | 9d6ea6f748c04407d94effea0a409023fe707571006ebed66a8ff3ae83126175 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzk2OkE2RDUyOjEzQjVFQjM6MUFFRDgyQzo2QTRFRkEwNCIsInZpc2l0b3JfaWQiOiIzMTYyNDEyOTkxOTUwODEzNzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e0a5685b06cf6d25e6e902ec49e9b68262fad42276129838d8bd5f6dd6ec9dce |
| hovercard-subject-tag | issue:2149689349 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/342/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8706527b115303ac4e52610892849a8816224bf003bd1f0bf395bc9bfde80bea/cppcheck-opensource/simplecpp/issues/342 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8706527b115303ac4e52610892849a8816224bf003bd1f0bf395bc9bfde80bea/cppcheck-opensource/simplecpp/issues/342 |
| og:image:alt | #include\\> #include\\> ==58215==ERROR: LeakSanitizer: detected memory leaks Direct leak of 144 byte(s) in 2 object(s) allocated from: #0 0x7ff948ae2002 in operator new(unsigned long) /usr/src/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | firewave |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width