summaryrefslogtreecommitdiff
path: root/Src/math.c
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-07-31 22:15:58 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-07-31 22:15:58 +0900
commitbaedd62f0d601bf03d99b2366a8ace42268e88ed (patch)
tree82add95fcfcf764c535b2b3ee126eb012ba5b648 /Src/math.c
parente6f2d776d3ce582533fc6177082270872fcf67a3 (diff)
downloadzsh-baedd62f0d601bf03d99b2366a8ace42268e88ed.tar.gz
zsh-baedd62f0d601bf03d99b2366a8ace42268e88ed.zip
43219 (except term{cap,info}.c): fix several memory leaks
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c
index 32bccc6e9..4b7ecf0ab 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -535,7 +535,7 @@ lexconstant(void)
for (ptr2 = ptr; ptr2 < nptr; ptr2++) {
if (*ptr2 == '_') {
int len = nptr - ptr;
- ptr = ztrdup(ptr);
+ ptr = dupstring(ptr);
for (ptr2 = ptr; len; len--) {
if (*ptr2 == '_')
chuck(ptr2);