Mercurial > vim
comparison src/quickfix.c @ 20996:3af71cbcfdbe v8.2.1049
patch 8.2.1049: Vim9: leaking memory when using continuation line
Commit: https://github.com/vim/vim/commit/b171fb179053fa631fec74911b5fb9374cb6a8a1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 24 20:34:03 2020 +0200
patch 8.2.1049: Vim9: leaking memory when using continuation line
Problem: Vim9: leaking memory when using continuation line.
Solution: Keep a pointer to the continuation line in evalarg_T. Centralize
checking for a next command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Jun 2020 20:45:04 +0200 |
parents | f23c6543a54d |
children | acfda84f5661 |
comparison
equal
deleted
inserted
replaced
20995:2006e6c11165 | 20996:3af71cbcfdbe |
---|---|
7678 if (qi == NULL) | 7678 if (qi == NULL) |
7679 return; | 7679 return; |
7680 | 7680 |
7681 // Evaluate the expression. When the result is a string or a list we can | 7681 // Evaluate the expression. When the result is a string or a list we can |
7682 // use it to fill the errorlist. | 7682 // use it to fill the errorlist. |
7683 tv = eval_expr(eap->arg, &eap->nextcmd); | 7683 tv = eval_expr(eap->arg, eap); |
7684 if (tv != NULL) | 7684 if (tv != NULL) |
7685 { | 7685 { |
7686 if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL) | 7686 if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL) |
7687 || (tv->v_type == VAR_LIST && tv->vval.v_list != NULL)) | 7687 || (tv->v_type == VAR_LIST && tv->vval.v_list != NULL)) |
7688 { | 7688 { |