[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
leak in skip_double_quoted for funsub
From: |
Grisha Levit |
Subject: |
leak in skip_double_quoted for funsub |
Date: |
Mon, 26 Jun 2023 19:34:56 -0400 |
diff --git a/subst.c b/subst.c
index 215e3469..63ca3370 100644
--- a/subst.c
+++ b/subst.c
@@ -1042,7 +1042,7 @@ skip_double_quoted (const char *string, size_t
slen, int sind, int flags)
if (string[i + 1] == LPAREN)
ret = extract_command_subst (string, &si,
SX_NOALLOC|(flags&SX_COMPLETE));
else if (string[i + 1] == LBRACE && FUNSUB_CHAR (string[si]))
- ret = extract_function_subst (string, &si,
Q_DOUBLE_QUOTES, (flags & SX_COMPLETE));
+ ret = extract_function_subst (string, &si,
Q_DOUBLE_QUOTES, SX_NOALLOC|(flags&SX_COMPLETE));
else
ret = extract_dollar_brace_string (string, &si,
Q_DOUBLE_QUOTES, SX_NOALLOC|(flags&SX_COMPLETE));
- leak in skip_double_quoted for funsub,
Grisha Levit <=