diff options
author | Rye <rye@lindenlab.com> | 2024-11-04 12:28:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 12:28:42 -0500 |
commit | 9b124b7260af3a15ab410eec796043747d9bf2ff (patch) | |
tree | caa1565508057626d8f9a268d429731ebd37b72b /indra/llplugin/llpluginprocessparent.cpp | |
parent | a895f4e02052729092359ee31a40ee0e4e3ed961 (diff) | |
parent | 2c7f57b3d6967c618d90d0cab97ec5dda221d3b0 (diff) |
Merge pull request #3007 from secondlife/rye/crashfixes
Fixes various small memory leaks and some crashes
Diffstat (limited to 'indra/llplugin/llpluginprocessparent.cpp')
-rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index b838e05560..a79774e900 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -400,9 +400,14 @@ void LLPluginProcessParent::idle(void) apr_sockaddr_t* addr = NULL; mListenSocket = LLSocket::create(gAPRPoolp, LLSocket::STREAM_TCP); mBoundPort = 0; + if (!mListenSocket) + { + killSockets(); + errorState(); + break; + } // This code is based on parts of LLSocket::create() in lliosocket.cpp. - status = apr_sockaddr_info_get( &addr, "127.0.0.1", |