http://lists.research.att.com/pipermail/ast-developers/2015q3.txt
Message-ID: <55B9124F.6020501@oracle.com>
diff --git a/src/cmd/ksh93/bltins/cd_pwd.c b/src/cmd/ksh93/bltins/cd_pwd.c
index 0735be9..ed544bf 100644
--- a/src/cmd/ksh93/bltins/cd_pwd.c
+++ b/src/cmd/ksh93/bltins/cd_pwd.c
@@ -223,7 +223,7 @@
nv_scan(shp->track_tree,rehash,(void*)0,NV_TAGGED,NV_TAGGED);
path_newdir(shp,shp->pathlist);
path_newdir(shp,shp->cdpathlist);
- if(oldpwd)
+ if(oldpwd && (oldpwd!=e_dot))
free(oldpwd);
return(0);
}