X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FNewAlloc.c;h=d049260a99ca3e58546d67165a4541493211ffba;hb=e6f797f8ccde60604461df6cbb869546fbfbbc2d;hp=949b1a8537b8f24bbe8aec5f041bff52a003509e;hpb=4b2a5c436502f2a0915dd4eefe3111c2799a8305;p=fw%2Fsdcc diff --git a/support/Util/NewAlloc.c b/support/Util/NewAlloc.c index 949b1a85..d049260a 100644 --- a/support/Util/NewAlloc.c +++ b/support/Util/NewAlloc.c @@ -45,7 +45,11 @@ functions. #define MALLOC GC_malloc #define REALLOC GC_realloc -#define FREE GC_free +/* PENDING: This is a mild hack. If we try to GC_free something + allocated with malloc() then the program will segfault. Might as + well drop it and let the garbase collector take care of things. +*/ +#define FREE(_a) #else