dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
realpath(..., NULL) allocates buffer of size MAX_PATH bytes.
Then, setenv() copies the string it got (unlike putenv()).
So we should free this string, or else it is leaked.
Found this issue while trying to debug #74 with Valgrind. That 4096-bytes memory block was marked as "definitely lost".
realpath(..., NULL) allocates buffer of size MAX_PATH bytes. Then, setenv() copies the string it got (unlike putenv()). So we should free this string, or else it is leaked.
Found this issue while trying to debug #74 with Valgrind. That 4096-bytes memory block was marked as "definitely lost".