diff options
Diffstat (limited to 'common/gdm-profile.c')
-rw-r--r-- | common/gdm-profile.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/gdm-profile.c b/common/gdm-profile.c index 1a37d325..ea9c0fe0 100644 --- a/common/gdm-profile.c +++ b/common/gdm-profile.c @@ -41,8 +41,8 @@ _gdm_profile_log (const char *func, ...) { va_list args; - char *str; - char *formatted; + g_autofree char *str = NULL; + g_autofree char *formatted = NULL; const char *prgname; if (format == NULL) { @@ -68,8 +68,5 @@ _gdm_profile_log (const char *func, formatted); } - g_free (formatted); - g_access (str, F_OK); - g_free (str); } |