]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/dissect-image.c
dissect-image: free crypt_device object before trying to activate with unique name
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 17 Sep 2022 00:01:46 +0000 (09:01 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 18 Sep 2022 09:19:33 +0000 (11:19 +0200)
commit0f75b0c589f6ad75dc9d669f60f3f7cf3e011c87
treeaab2ddbcf48fe66049dd5c123f80fc4e54443804
parenta1c3628b19ddd9b8eab305806fca1a4f37a33559
dissect-image: free crypt_device object before trying to activate with unique name

Otherwise we get error from libcryptsetup like the following:
systemd[1234]: Cannot use device /dev/loop5 which is in use (already mapped or mounted).
src/shared/dissect-image.c