Message ID | CAOKKkHeAkWxtgm6=0eq6D6pPt+QV3SuEhrq=YNO-Jj7vospf-w@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Herbert Xu |
Headers | show |
Series | expand: Add ifsfree to expand to fix a logic error that leaks the heap | expand |
--- a/src/expand.c +++ b/src/expand.c @@ -859,6 +859,7 @@ if (discard) return -1; + ifsfree(); sh_error("Bad substitution"); } @@ -1739,6 +1740,7 @@ } else msg = umsg; } + ifsfree(); sh_error("%.*s: %s%s", end - var - 1, var, msg, tail); } --