Guest User

Untitled

a guest
Feb 21st, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include "memchkr.h"
  2.  
  3. int main() {
  4.     int  *p1 = new int;
  5.     void *p2 = malloc(123);
  6.     void *p3 = realloc(p2, 1234); // MEMORY LEAK
  7.     void *p4 = calloc(12, 34);
  8.     free(p4);
  9.     delete p1;
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment