-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathreadme
25 lines (19 loc) · 980 Bytes
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
gcc -g -c mld.c -o mld.o
gcc -g -c LinkedList/LinkedListApi.c -o LinkedList/LinkedListApi.o
gcc -g -c app.c -o app.o
gcc -g -o exe app.o LinkedList/LinkedListApi.o mld.o
Run the program as :
./exe
The program will print the leaked objects as below.
Program also print the structure db and object db, but here i am pasting the final
outcome of the program - set of leaked objects. As you can see, in app.c, I had intentionally leaked
the below object which is being shown as leaked.
Dumping Leaked Objects
-----------------------------------------------------------------------------------------------------|
0 ptr = 0x55cf26d86a40 | next = 0x55cf26d86a10 | units = 1 | struct_name = student_t | is_root = FALSE |
-----------------------------------------------------------------------------------------------------|
student_t[0]->stud_name = shivani
student_t[0]->rollno = 0
student_t[0]->age = 0
student_t[0]->aggregate = 0.000000
student_t[0]->best_colleage = (nil)