Mercurial > vim
view src/tee/Makefile @ 24928:cf4bc18a3931 v8.2.3001
patch 8.2.3001: Vim9: memory leak when compilation fails
Commit: https://github.com/vim/vim/commit/caf1a2f296499bdcf030aca545a04da65ac210a1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 15 11:27:21 2021 +0200
patch 8.2.3001: Vim9: memory leak when compilation fails
Problem: Vim9: memory leak when compilation fails.
Solution: Free the list of variable names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Jun 2021 11:30:03 +0200 |
parents | c2fbac867d9c |
children | ba9d53c7c509 |
line wrap: on
line source
# A very (if not the most) simplistic Makefile for MS-Windows and OS/2 CC=gcc CFLAGS=-O2 -fno-strength-reduce ifneq (sh.exe, $(SHELL)) DEL = rm -f else DEL = del endif tee.exe: tee.o $(CC) $(CFLAGS) -s -o $@ $< tee.o: tee.c $(CC) $(CFLAGS) -c $< clean: - $(DEL) tee.o - $(DEL) tee.exe