summaryrefslogtreecommitdiff
path: root/daemon/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/auth.c')
-rw-r--r--daemon/auth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/auth.c b/daemon/auth.c
index 9ca10096..86daa110 100644
--- a/daemon/auth.c
+++ b/daemon/auth.c
@@ -411,7 +411,8 @@ void
gdm_auth_user_remove (GdmDisplay *d, uid_t user)
{
FILE *af;
- gchar *authfile, *authdir;
+ const gchar *authfile;
+ gchar *authdir;
if (!d || !d->userauth)
return;
@@ -436,9 +437,10 @@ gdm_auth_user_remove (GdmDisplay *d, uid_t user)
if (! gdm_file_check ("gdm_auth_user_remove", user, authdir, authfile,
TRUE, GdmUserMaxFile, GdmRelaxPerms)) {
- gdm_error (_("gdm_auth_user_remove: Ignoring suspiciously looking cookie file %s"), d->userauth);
+ g_free (authdir);
+ gdm_error (_("gdm_auth_user_remove: Ignoring suspiciously looking cookie file %s"), d->userauth);
- return;
+ return;
}
g_free (authdir);
@@ -464,8 +466,6 @@ gdm_auth_user_remove (GdmDisplay *d, uid_t user)
g_free (d->userauth);
d->userauth = NULL;
-
- return;
}