projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a memory leak. (#94550, Sebastian Rittau)
[platform/upstream/glib.git]
/
glib
/
gdate.c
diff --git
a/glib/gdate.c
b/glib/gdate.c
index
72bf21b
..
bfbb714
100644
(file)
--- a/
glib/gdate.c
+++ b/
glib/gdate.c
@@
-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);
}
}