free string after use in localization module 34/17134/2
Antoine ELIAS [Fri, 28 Aug 2015 14:16:14 +0000 (16:16 +0200)]
Change-Id: Iacf984e4196a1a4124f80d7a090ec58668801b9d

scilab/modules/localization/src/c/LanguagePreferences_Windows.c

index d901fd7..c17dcd8 100644 (file)
@@ -99,6 +99,8 @@ wchar_t *getLanguagePreferences(void)
             {
                 return LanguageAllUsers;
             }
+
+            FREE(LanguageAllUsers);
         }
     }
     else
@@ -107,6 +109,8 @@ wchar_t *getLanguagePreferences(void)
         {
             return LanguageUser;
         }
+
+        FREE(LanguageUser);
     }
     return os_wcsdup(L"");
 }