BACKENDS: Fix file descriptor use-after-free in LinuxAudioCDManager

This commit is contained in:
Scott Percival 2023-12-15 11:22:40 +08:00
parent 9a9a13605f
commit fd9da407b6
No known key found for this signature in database

View File

@ -246,6 +246,7 @@ void LinuxAudioCDManager::close() {
return;
::close(_fd);
_fd = -1;
memset(&_tocHeader, 0, sizeof(_tocHeader));
_tocEntries.clear();
}