Blame SOURCES/ksh-20120801-mlikfiks.patch

503c26
diff -up ksh-20120801/src/cmd/ksh93/sh/lex.c.mlikfiks ksh-20120801/src/cmd/ksh93/sh/lex.c
503c26
--- ksh-20120801/src/cmd/ksh93/sh/lex.c.mlikfiks	2013-07-22 12:45:30.923170264 +0200
503c26
+++ ksh-20120801/src/cmd/ksh93/sh/lex.c	2013-07-22 12:46:25.235556905 +0200
503c26
@@ -2465,7 +2465,7 @@ static int alias_exceptf(Sfio_t *iop,int
503c26
 			if(dp!=handle)
503c26
 				sfdisc(iop,dp);
503c26
 		}
503c26
-		else if(type==SF_FINAL)
503c26
+		else if(type==SF_DPOP || type==SF_FINAL)
503c26
 			free((void*)ap);
503c26
 		goto done;
503c26
 	}
503c26
diff -up ksh-20120801/src/cmd/ksh93/sh/path.c.mlikfiks ksh-20120801/src/cmd/ksh93/sh/path.c
503c26
--- ksh-20120801/src/cmd/ksh93/sh/path.c.mlikfiks	2013-07-22 12:47:23.149990016 +0200
503c26
+++ ksh-20120801/src/cmd/ksh93/sh/path.c	2013-07-22 12:48:33.363283877 +0200
503c26
@@ -613,6 +613,7 @@ static void funload(Shell_t *shp,int fno
503c26
 		}
503c26
 		while((rp=dtnext(shp->fpathdict,rp)) && strcmp(pname,rp->fname)==0);
503c26
 		sh_close(fno);
503c26
+		free((void*)pname);
503c26
 		return;
503c26
 	}
503c26
 	sh_onstate(SH_NOLOG);
503c26
diff -up ksh-20120801/src/cmd/ksh93/sh/macro.c.aliasfix ksh-20120801/src/cmd/ksh93/sh/macro.c
503c26
--- ksh-20120801/src/cmd/ksh93/sh/macro.c.aliasfix	2013-07-29 15:03:45.841680475 +0200
503c26
+++ ksh-20120801/src/cmd/ksh93/sh/macro.c	2013-07-29 15:04:23.871336821 +0200
503c26
@@ -2085,6 +2085,7 @@ static void comsubst(Mac_t *mp,register
503c26
 			}
503c26
 			sfputc(stkp,c);
503c26
 		}
503c26
+		sfputc(stkp,' ');
503c26
 		c = stktell(stkp);
503c26
 		str=stkfreeze(stkp,1);
503c26
 		/* disable verbose and don't save in history file */