diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-10-31 12:23:49 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2023-04-28 19:41:28 +0000 |
commit | 1cc0e3f07b255ebd7fc5c60791a32e1f25b3b9d3 (patch) | |
tree | 0931018d04907d852a8a48a4290e189239c46ec6 /common | |
parent | 731ac9b31542a11816967490bc3304919dd1d175 (diff) | |
download | gdm-1cc0e3f07b255ebd7fc5c60791a32e1f25b3b9d3.tar.gz |
gdm-profile: Use g_auto*
Diffstat (limited to 'common')
-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); } |