| 
					
				 | 
			
			
				@@ -5,6 +5,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <string.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include "core/Logger.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "core/Utility.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 typedef struct { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     char* file; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -25,11 +26,7 @@ static Result* getResult(const char* file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     while(resultsIndex >= resultsCapacity) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size_t newCapacity = resultsCapacity == 0 ? 8 : resultsCapacity * 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        results = realloc(results, newCapacity * sizeof(Result)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(results == nullptr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            printf("realloc failure in '%s' at '%d'\n", __FILE__, __LINE__); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            exit(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        results = coreReallocate(results, newCapacity * sizeof(Result)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         resultsCapacity = newCapacity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Result* r = results + (resultsIndex++); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,7 +46,7 @@ void coreFinalizeTests(void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         puts(CORE_TERMINAL_RESET); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         free(r->file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    free(results); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    coreFree(results); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     results = nullptr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     resultsIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     resultsCapacity = 0; 
			 |