loc_bad_alloc

This commit is contained in:
Michael Davidsaver
2023-03-28 09:41:35 -07:00
parent 46fe3f921b
commit d692d7da2c
7 changed files with 50 additions and 8 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ struct SocketPair {
auto err = evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, s);
#endif
if(err)
throw std::bad_alloc();
throw BAD_ALLOC();
}
~SocketPair() {
epicsSocketDestroy(s[0]);