]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CONTRIB: da: fix memory leak in dummy function da_atlas_open()
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Jul 2020 07:12:07 +0000 (09:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 12 Jul 2020 07:12:07 +0000 (09:12 +0200)
commit62fd12149f73feb4e9c93a961670d527436a6e33
tree871e803d53ce1d57e70fcb1d1955a9f90b68ec93
parent950954f5f7dbf218f4100921e2660c357ed50ad3
CONTRIB: da: fix memory leak in dummy function da_atlas_open()

The dummy function takes care of doing a bit of work using a malloc()
to avoid returning a constant but it doesn't free the tested pointer,
which coverity noticed in issue #741. Let's free it before testing it
for the return value.

This may be backported but is not important since this code is only
present to allow to build the device detection code and not to actually
run it.
contrib/deviceatlas/dac.c