'still reachable' memory blocks shown by Valgrind
Closed this issue · 0 comments
keenhenry commented
There are some such blocks that can be avoided. You shouldn't use kernel space xmalloc for your user space codes: like you used in pushd/path (in builtins.c) and set_paths_lists() (in hsh.c).
Modify your dupstr() function to make it a userspace function. But you can keep using kernel space dupstr with readline auto-completion interface. Try it out yourself!