VirtualBox

Changeset 103241 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Feb 7, 2024 11:30:01 AM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161527
Message:

Dev/PC/DevPit-i8254: Don't leak fd if speaker emulation isn't possible (found by Parfait). bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r99768 r103241  
    14301430        if (pThisCC->enmSpeakerEmu == PIT_SPEAKER_EMU_NONE)
    14311431        {
    1432             Assert(fd == -1);
     1432            if (fd != -1)
     1433            {
     1434                close(fd);
     1435                fd = -1;
     1436            }
    14331437            LogRel(("PIT: speaker: no emulation possible\n"));
    14341438        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette