Fix a memory leak. (#94550, Sebastian Rittau)
authorOwen Taylor <otaylor@redhat.com>
Mon, 14 Oct 2002 22:18:16 +0000 (22:18 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 14 Oct 2002 22:18:16 +0000 (22:18 +0000)
Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
        leak. (#94550, Sebastian Rittau)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gdate.c

index af7d6a2..7eadedb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index af7d6a2..7eadedb 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
+       leak. (#94550, Sebastian Rittau)
+
 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gcompletion.[ch] (g_completion_complete): Make
index 72bf21b..bfbb714 100644 (file)
@@ -528,7 +528,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt)
               if (found != NULL)
                 {
                   pt->month = i;
-                 return;
+                 break;
                 }
             }
          
@@ -539,12 +539,14 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt)
               if (found != NULL)
                 {
                   pt->month = i;
-                  return;
+                 break;
                 }
             }
 
           ++i;
-        }      
+        }
+
+      g_free (normalized);
     }
 }