Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "memchkr.h"
- int main() {
- int *p1 = new int;
- void *p2 = malloc(123);
- void *p3 = realloc(p2, 1234); // MEMORY LEAK
- void *p4 = calloc(12, 34);
- free(p4);
- delete p1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment