shell.c memory leak in monads() fixed