mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-01 05:38:01 +02:00
linux: Fix memory leak if logind returns an error
This commit is contained in:
parent
c68daf665f
commit
17dba403e7
1 changed files with 1 additions and 0 deletions
|
|
@ -670,6 +670,7 @@ up_backend_inhibitor_lock_take (UpBackend *backend)
|
|||
if (out == NULL) {
|
||||
g_warning ("Could not acquire inhibitor lock: %s",
|
||||
error ? error->message : "Unknown reason");
|
||||
g_clear_error (&error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue