Merge with EFL svn repo: changeset 51546: eina: leak-- in win32 code.
authorJoseph T <joseph.t@samsung.com>
Fri, 24 Sep 2010 17:00:30 +0000 (13:00 -0400)
committerJoseph T <joseph.t@samsung.com>
Fri, 24 Sep 2010 17:00:30 +0000 (13:00 -0400)
src/lib/eina_log.c

index 15642f2..87b2906 100644 (file)
@@ -483,7 +483,10 @@ eina_log_win32_color_get(const char *domain_str)
 
    /* this should not append */
    if (str[0] != '\033')
-      return 0;
+     {
+        free(str);
+        return 0;
+     }
 
    /* we skip the first char and the [ */
    tmp = tmp2 = str + 2;