sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit dc8a781c16c467c4540e001721725c6ff444d664
parent 9b4e1dd6d4f2705ad47d644efa330ed37b713df3
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Mon, 19 Jan 2026 09:42:23 +0100

bc: Remove leftover from c00921a

The commit c00921a fixed a segfault happening when no parameters
or auto variables happened, moving the initialization of the
unwind string to the moment when the macro is initialized, but
a dummy initialization remained for every declaration making that
variables were not poped (and of course a memory leak).

Diffstat:
Mbc.y | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/bc.y b/bc.y @@ -392,7 +392,6 @@ decl(int type, char *list, char *id) i2 = estrdup(id); free(id); - unwind = estrdup(""); if (!list) list = estrdup("");