Module Name: src Committed By: rillig Date: Thu Mar 9 06:49:37 UTC 2023
Modified Files: src/usr.bin/make: var.c Log Message: make: fix memory leak when parsing ':from=to' modifiers Since var.c 1.925 from 2021-04-12. To generate a diff of this commit: cvs rdiff -u -r1.1047 -r1.1048 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/var.c diff -u src/usr.bin/make/var.c:1.1047 src/usr.bin/make/var.c:1.1048 --- src/usr.bin/make/var.c:1.1047 Sat Feb 18 11:16:09 2023 +++ src/usr.bin/make/var.c Thu Mar 9 06:49:37 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: var.c,v 1.1047 2023/02/18 11:16:09 rillig Exp $ */ +/* $NetBSD: var.c,v 1.1048 2023/03/09 06:49:37 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -139,7 +139,7 @@ #include "metachar.h" /* "@(#)var.c 8.3 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: var.c,v 1.1047 2023/02/18 11:16:09 rillig Exp $"); +MAKE_RCSID("$NetBSD: var.c,v 1.1048 2023/03/09 06:49:37 rillig Exp $"); /* * Variables are defined using one of the VAR=value assignments. Their @@ -3668,6 +3668,7 @@ ApplyModifier_SysV(const char **pp, ModC done: LazyBuf_Done(&lhsBuf); + FStr_Done(&rhs); return AMR_OK; } #endif