Commit f980892
authored
automount: fix automount with active screensaver and memleak (#426)
* automount: fix queue iteration
fix use-after-free bug caused by dereferencing l after g_list_remove.
This change also fixes auto-mounting multiple volumes that were
connected while the screensaver was active.
* automount: fix memleak in csd-autorun
guessed_content_type also has to be freed if non-NULL (no error) but empty.1 parent b5da80d commit f980892
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
| 801 | + | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
826 | 825 | | |
827 | 826 | | |
828 | 827 | | |
| |||
0 commit comments