db/update/InotifyUpdate: fix use-after-free bug
Regression by commit 2d8847f428
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NEWS
									
									
									
									
									
								
							| @@ -2,6 +2,8 @@ ver 0.23.3 (not yet released) | |||||||
| * protocol | * protocol | ||||||
|   - add optional position parameter to "add" and "playlistadd" |   - add optional position parameter to "add" and "playlistadd" | ||||||
|   - allow range in "playlistdelete" |   - allow range in "playlistdelete" | ||||||
|  | * database | ||||||
|  |   - inotify: fix use-after-free bug | ||||||
| * output | * output | ||||||
|   - alsa: add option "stop_dsd_silence" to work around DSD DAC noise |   - alsa: add option "stop_dsd_silence" to work around DSD DAC noise | ||||||
| * macOS: fix libfmt related build failure | * macOS: fix libfmt related build failure | ||||||
|   | |||||||
| @@ -282,7 +282,7 @@ InotifyUpdate::InotifyCallback(int wd, unsigned mask, | |||||||
| 	    (mask & IN_ISDIR) != 0) { | 	    (mask & IN_ISDIR) != 0) { | ||||||
| 		/* a sub directory was changed: register those in | 		/* a sub directory was changed: register those in | ||||||
| 		   inotify */ | 		   inotify */ | ||||||
| 		const Path root_path = root->name; | 		const auto root_path = root->name; | ||||||
|  |  | ||||||
| 		const auto path_fs = uri_fs.IsNull() | 		const auto path_fs = uri_fs.IsNull() | ||||||
| 			? root_path | 			? root_path | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann