Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <memory>
  3.  
  4. void some_function()
  5. {
  6. std::exit(EXIT_SUCCESS);
  7. }
  8.  
  9. int main()
  10. {
  11. std::unique_ptr<int> relying_on_raii{new int{5}};
  12. }
  13.  
  14. 1 potential leak(s) (suspected false positives)
  15. […]
  16. 6 unique, 6 total, 797 byte(s) of still-reachable allocation(s)
  17.  
  18. 1 potential leak(s) (suspected false positives)
  19. […]
  20. 7 unique, 7 total, 801 byte(s) of still-reachable allocation(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement