Skip to content

Commit 44e6fd8

Browse files
committed
udiskslinuxblock: Fix leaking cleartext block interface
(cherry picked from commit cd33a55)
1 parent 60fa009 commit 44e6fd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/udiskslinuxblock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,6 +2759,7 @@ teardown_block_walker (UDisksDaemon *daemon,
27592759
device has been cleaned up. Lock the backing device so
27602760
that we can format or wipe it later.
27612761
*/
2762+
g_object_unref (cleartext);
27622763
if (enc && !udisks_linux_encrypted_lock (UDISKS_LINUX_ENCRYPTED (enc),
27632764
data->invocation,
27642765
data->options,

0 commit comments

Comments
 (0)