commit | ae32ac74dbc2cb93a07d7d29b4c20a075bc7741a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Oct 27 09:51:37 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 27 09:55:00 2020 +0100 |
tree | 750b1ce2f9ce4e3d24b4467bf08a3897b43db2fc | |
parent | a73a222a9863e5f6763786845c1ff9e7e1038c3c [diff] |
BUG/MINOR: log: fix memory leak on logsrv parse error In case of parsing error on logsrv, we can leave parse_logsrv() without releasing logsrv->ring_name or smp_rgs. Let's free them on the error path. This should fix issue #926 detected by Coverity. The impact is only a tiny leak just before reporting a fatal error, so it will essentially annoy valgrind. This can be backported to 2.0 (just drop the ring part).