Fix memory leak in lglob_glob
Fix memory leak in rm