view src/typemap @ 18595:517bfb2998aa v8.1.2291

patch 8.1.2291: memory leak when executing command in a terminal Commit: https://github.com/vim/vim/commit/adf4aa200b026dce91dd169143ee8b93e848ec8b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 10 22:36:44 2019 +0100 patch 8.1.2291: memory leak when executing command in a terminal Problem: Memory leak when executing command in a terminal. Solution: Free "argv". (Dominique Pelle, closes https://github.com/vim/vim/issues/5208)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Nov 2019 22:45:03 +0100
parents dec4338a7da2
children
line wrap: on
line source

TYPEMAP
VIWIN	T_VIOBJNOMUNGE
VIBUF	T_VIOBJNOMUNGE

INPUT
T_VIOBJNOMUNGE
	if (sv_isa($arg, \"${ntype}\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type, tmp);
	    if (!tmp)
		croak(\"$ntype no longer exists\");
	}
	else
	    croak(\"$var is not of type ${ntype}\")