diff options
Diffstat (limited to 'shell/cc-log.c')
-rw-r--r-- | shell/cc-log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/cc-log.c b/shell/cc-log.c index 95633bb97..dba4f5a26 100644 --- a/shell/cc-log.c +++ b/shell/cc-log.c @@ -57,7 +57,7 @@ log_handler (const gchar *domain, g_autoptr(GDateTime) now = NULL; const gchar *level; g_autofree gchar *ftime = NULL; - gchar *buffer; + g_autofree gchar *buffer = NULL; /* Skip ignored log domains */ if (domain && g_strv_contains (ignored_domains, domain)) @@ -80,8 +80,6 @@ log_handler (const gchar *domain, g_io_channel_flush (standard_channel, NULL); G_UNLOCK (channel_lock); - - g_free (buffer); } void |