pgsql: Fix WaitEventSet resource leak in WaitLatchOrSocket().

2024-04-11 Thread Etsuro Fujita
Fix WaitEventSet resource leak in WaitLatchOrSocket(). This function would have the same issue we solved in commit 501cfd07d: If an error is thrown after calling CreateWaitEventSet(), the file descriptor (on epoll- or kqueue-based systems) or handles (on Windows) that the WaitEventSet contains are

pgsql: Fix WaitEventSet resource leak in WaitLatchOrSocket().

2024-04-11 Thread Etsuro Fujita
Fix WaitEventSet resource leak in WaitLatchOrSocket(). This function would have the same issue we solved in commit 501cfd07d: If an error is thrown after calling CreateWaitEventSet(), the file descriptor (on epoll- or kqueue-based systems) or handles (on Windows) that the WaitEventSet contains are

pgsql: Fix WaitEventSet resource leak in WaitLatchOrSocket().

2024-04-11 Thread Etsuro Fujita
Fix WaitEventSet resource leak in WaitLatchOrSocket(). This function would have the same issue we solved in commit 501cfd07d: If an error is thrown after calling CreateWaitEventSet(), the file descriptor (on epoll- or kqueue-based systems) or handles (on Windows) that the WaitEventSet contains are

pgsql: Fix WaitEventSet resource leak in WaitLatchOrSocket().

2024-04-11 Thread Etsuro Fujita
Fix WaitEventSet resource leak in WaitLatchOrSocket(). This function would have the same issue we solved in commit 501cfd07d: If an error is thrown after calling CreateWaitEventSet(), the file descriptor (on epoll- or kqueue-based systems) or handles (on Windows) that the WaitEventSet contains are

pgsql: Fix WaitEventSet resource leak in WaitLatchOrSocket().

2024-04-11 Thread Etsuro Fujita
Fix WaitEventSet resource leak in WaitLatchOrSocket(). This function would have the same issue we solved in commit 501cfd07d: If an error is thrown after calling CreateWaitEventSet(), the file descriptor (on epoll- or kqueue-based systems) or handles (on Windows) that the WaitEventSet contains are