mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 16:50:44 +02:00
consolekit: fix memory leak on error
Acked-By: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
954c744bc0
commit
b52d21a68c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue