FreeBSD Bugzilla – Attachment 207403 Details for
Bug 240517
[PATCH] devel/glib20: syscall flood on every time*() function call
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix possible mem leak
glib20_tzcache.patch (text/plain), 1.01 KB, created by
Ivan Rozhuk
on 2019-09-12 02:53:54 UTC
(
hide
)
Description:
fix possible mem leak
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2019-09-12 02:53:54 UTC
Size:
1.01 KB
patch
obsolete
>Index: devel/glib20/files/patch-glib_gtimezone.c >=================================================================== >--- devel/glib20/files/patch-glib_gtimezone.c (nonexistent) >+++ devel/glib20/files/patch-glib_gtimezone.c (working copy) >@@ -0,0 +1,26 @@ >+--- glib/gtimezone.c.orig 2018-09-21 12:29:23.000000000 +0300 >++++ glib/gtimezone.c 2019-09-12 00:53:42.760936000 +0300 >+@@ -1460,7 +1470,10 @@ >+ GTimeZone * >+ g_time_zone_new_utc (void) >+ { >+- return g_time_zone_new ("UTC"); >++ GTimeZone *tz = g_time_zone_new ("UTC"); >++ if (tz != NULL && tz->name != NULL) >++ g_atomic_int_inc (&tz->ref_count); /* Cache infinite. */ >++ return tz; >+ } >+ >+ /** >+@@ -1483,7 +1496,10 @@ >+ GTimeZone * >+ g_time_zone_new_local (void) >+ { >+- return g_time_zone_new (getenv ("TZ")); >++ GTimeZone *tz = g_time_zone_new (getenv ("TZ")); >++ if (tz != NULL && tz->name != NULL) >++ g_atomic_int_inc (&tz->ref_count); /* Cache infinite. */ >++ return tz; >+ } >+ >+ #define TRANSITION(n) g_array_index (tz->transitions, Transition, n)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240517
:
207400
|
207403
|
207446
|
208785