Skip to content

Commit

Permalink
udiskslinuxblock: Fix leaking cleartext block interface
Browse files Browse the repository at this point in the history
(cherry picked from commit cd33a55)
  • Loading branch information
tbzatek committed Sep 29, 2021
1 parent 60fa009 commit 44e6fd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/udiskslinuxblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2759,6 +2759,7 @@ teardown_block_walker (UDisksDaemon *daemon,
device has been cleaned up. Lock the backing device so
that we can format or wipe it later.
*/
g_object_unref (cleartext);
if (enc && !udisks_linux_encrypted_lock (UDISKS_LINUX_ENCRYPTED (enc),
data->invocation,
data->options,
Expand Down

0 comments on commit 44e6fd8

Please sign in to comment.