Leak of Assignment 1 Part 2

94 views
Skip to first unread message

LARRY

unread,
Sep 23, 2020, 6:10:29 PM9/23/20
to cmpt-295-sfu
I push the assignment1 and travis shows pass all tests. However, after I check leak it shows this. Should I solve this or just leave it here?

WechatIMG22.jpeg

Arrvindh Shriraman

unread,
Sep 23, 2020, 6:52:27 PM9/23/20
to cmpt-295-sfu
You have to handle all leaks originating from arraylist.c and tree.c . 

Arrvindh Shriraman

unread,
Sep 23, 2020, 6:55:40 PM9/23/20
to cmpt-295-sfu
Next time; paste the complete relevant log and follow the question template.

katie

unread,
Sep 23, 2020, 6:59:34 PM9/23/20
to cmpt-295-sfu
Hi Prof Arrvindh, 

Do we have to solve both the indirectly and directly lost bytes? Or just the directly lost bytes?

Thanks,
Katie

Arrvindh Shriraman

unread,
Sep 23, 2020, 7:41:02 PM9/23/20
to cmpt-2...@googlegroups.com
direct leak is a block which has no pointers to it.
An indirect leak is a block which is only pointed to by other leaked blocks. 

You have to resolve all leaks originating with tree.c and array list.c i.e., a result of your code mallocing it.

Reply all
Reply to author
Forward
0 new messages