scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit ad0cdde2978ae314e836e9b32d5cef7b9a740e9f
parent d68b3d817cf4b252524880eb9408d2f4b3b596ef
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 21 Sep 2017 12:44:17 +0100

[as] Don't deallocate what is not allocated

Diffstat:
Mas/symbol.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/as/symbol.c b/as/symbol.c @@ -221,6 +221,8 @@ tmpsym(TUINT val) void killtmp(void) { + if (!tmpalloc) + return; dealloc(tmpalloc); tmpalloc = NULL; }