From a7da3f6644a8831b944dfee589bedb62111ceae2 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 28 Feb 2014 17:38:51 +0100
Subject: [PATCH] Fix a typo in the UG_USE_SYSTEM_HEAP macro

I had simply misspelled it in the DisposeMem method.
It's a surprise the program never crashed with such a severe
bug in it.
---
 low/heaps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/low/heaps.c b/low/heaps.c
index 175810de6..5f4a2c095 100644
--- a/low/heaps.c
+++ b/low/heaps.c
@@ -461,7 +461,7 @@ void *NS_PREFIX GetMemUsingKey (HEAP *theHeap, MEM n, HeapAllocMode mode, INT ke
 
 void NS_PREFIX DisposeMem (HEAP *theHeap, void *buffer)
 {
-#if US_USE_SYSTEM_HEAP
+#if UG_USE_SYSTEM_HEAP
   free(buffer);
 #else
   BLOCK *newBlock,*theBlock,*nextBlock;
-- 
GitLab