consolekit: fix memory leak on error

Acked-By: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Pavel Šimerda 2015-01-02 20:36:48 +01:00
parent 954c744bc0
commit b52d21a68c

View file

@ -126,7 +126,7 @@ session_new (GKeyFile *keyfile, const char *group, GError **error)
goto error;
if (!nm_session_uid_to_user (s->uid, &uname, error))
return FALSE;
goto error;
s->user = g_strdup (uname);
return s;