fixes for minor memory leaks

This commit is contained in:
Chet Ramey
2021-07-19 09:58:33 -04:00
parent 8ede7a904f
commit 6650b4de61
11 changed files with 63 additions and 4 deletions
+1
View File
@@ -906,6 +906,7 @@ quote_compound_array_word (w, type)
nword[0] = LBRACK;
i = STRLEN (sub);
memcpy (nword+1, sub, i);
free (sub);
i++; /* accommodate the opening LBRACK */
nword[i++] = w[ind++]; /* RBRACK */
if (w[ind] == '+')