summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-07 19:48:39 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-07 19:48:39 +0200
commit45fc539fe048e037a8fc8dc8c043a781c30c9c73 (patch)
treeeede017979b5a2776b5e2994712cae426d6c3d42 /src/syntax.c
parenta238431302ff50f7db401248c4e66b8b298222c2 (diff)
downloadvim-git-45fc539fe048e037a8fc8dc8c043a781c30c9c73.tar.gz
updated for version 7.3.1142v7.3.1142
Problem: Memory leak in ":syntime report". Solution: Clear the grow array. (Dominique Pelle)
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 6cd583498..f2df13a3f 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -6689,6 +6689,7 @@ syntime_report()
msg_outtrans_len(p->pattern, len);
MSG_PUTS("\n");
}
+ ga_clear(&ga);
if (!got_int)
{
MSG_PUTS("\n");