Fix memory leak in float literal parsing
Issue=93

Contributed by Benoit Jacob

git-svn-id: https://angleproject.googlecode.com/svn/trunk@504 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/util.cpp b/src/compiler/util.cpp
index a45fe83..b46e4d0 100644
--- a/src/compiler/util.cpp
+++ b/src/compiler/util.cpp
@@ -18,7 +18,10 @@
 double atof_dot(const char *str)
 {
 #ifdef _MSC_VER
-    return _atof_l(str, _create_locale(LC_NUMERIC, "C"));
+    _locale_t l = _create_locale(LC_NUMERIC, "C");
+    double result = _atof_l(str, l);
+    _free_locale(l);
+    return result;
 #else
     double result;
     std::istringstream s(str);