diff dmd/StringExp.d @ 180:0622fff7810a

Fixed a few memory allocation related issues
author korDen
date Sun, 17 Oct 2010 23:23:28 +0400
parents e3afd1303184
children b0d41ff5e0df
line wrap: on
line diff
--- a/dmd/StringExp.d	Sun Oct 17 20:56:07 2010 +0400
+++ b/dmd/StringExp.d	Sun Oct 17 23:23:28 2010 +0400
@@ -858,7 +858,7 @@
 			e.Eoper = OPER.OPstring;
 static if (true) {
 			// Match MEM_PH_FREE for OPstring in ztc\el.c
-			e.EV.ss.Vstring = cast(char*)GC.malloc((len + 1) * sz); /// !
+			e.EV.ss.Vstring = cast(char*)malloc((len + 1) * sz);
 			memcpy(e.EV.ss.Vstring, string_, (len + 1) * sz);
 } else {
 			e.EV.ss.Vstring = cast(char*)string_;