summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/gdm-common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index 871f9bfc..9683d557 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -408,10 +408,8 @@ gdm_get_login_window_session_id (const char *seat_id,
res = sd_session_get_class (sessions[i], &service_class);
if (res < 0) {
- if (res == -ENOENT) {
- free (service_class);
+ if (res == -ENOENT)
continue;
- }
g_debug ("failed to determine class of session %s: %s", sessions[i], strerror (-res));
ret = FALSE;