remove memory leaks in launcher/dshell.c