C free() on Ubuntu VM, a question regarding heap memory
A simple program to allocate and free heap memory: int main(int argc, char **argv) { char *b1, *b2, *b3, *b4, *b_large; b1 = malloc(8); memset(b1, 0xaa, 8); b2= malloc(16); memset(b2, 0xbb, 16); b3 = malloc(25); memset(b3, 0xcc, 25); b4= malloc(1000);…