Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <memory>
- void some_function()
- {
- std::exit(EXIT_SUCCESS);
- }
- int main()
- {
- std::unique_ptr<int> relying_on_raii{new int{5}};
- }
- 1 potential leak(s) (suspected false positives)
- […]
- 6 unique, 6 total, 797 byte(s) of still-reachable allocation(s)
- 1 potential leak(s) (suspected false positives)
- […]
- 7 unique, 7 total, 801 byte(s) of still-reachable allocation(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement