commit | 7a8ca0a0633e120c5b82de81f03c31cc39a17cb1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Mar 20 19:53:14 2023 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Mar 20 19:58:38 2023 +0100 |
tree | 5d1f61e3d1b781452fb0f02ddbdea42317e0b751 | |
parent | e2f7946339b539035b64f23912a227af98e4a609 [diff] |
BUG/MINOR: stconn: fix sedesc memory leak on stream allocation failure If we fail to allocate a new stream in sc_new_from_endp(), and the call to sc_new() allocated the sedesc itself (which normally doesn't happen), then it doesn't get released on the failure path. Let's explicitly handle this case so that it's not overlooked and avoids some head scratching sessions. This may be backported to 2.6.