Question: When I ran Valgrind, I had some memory leaks (indefinite). I was wondering how I can fix this problem? If I free my malloc in the build_tree function, I won't be able to return any nodes.
Thank you,
Katie
kourosha...@gmail.com
unread,
Sep 24, 2020, 2:54:11 AM9/24/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cmpt-295-sfu
Following
Arrvindh Shriraman
unread,
Sep 24, 2020, 11:32:51 AM9/24/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cmpt-295-sfu
Think about when you can free the tree
You only need to follow the rules we have specified in the assignment page