]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ring: release the backing store name on exit
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Jan 2023 14:34:31 +0000 (15:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jan 2023 14:49:31 +0000 (15:49 +0100)
ASAN found that a ring equipped with a backing store did not release
the store name on exit.

This should be backported to 2.7.

src/sink.c

index 0aae5f2a7e74e91ad6405b653c261bf91b216053..e8d00059e6bd5df85832a1d87f459af9f9134d86 100644 (file)
@@ -1398,6 +1398,7 @@ static void sink_deinit()
 
                                msync(area, size, MS_SYNC);
                                munmap(area, size);
+                               ha_free(&sink->store);
                        }
                        else
                                ring_free(sink->ctx.ring);