From: Bart Van Assche Date: Sat, 4 Jan 2020 22:07:54 +0000 (-0800) Subject: t/memlock: Free allocated memory X-Git-Tag: fio-3.18~22^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a404c9bd161ec5d23c60fa661c9737e303e3cd65;p=fio.git t/memlock: Free allocated memory This patch fixes the following Coverity complaint: CID 280679: Resource leaks (RESOURCE_LEAK) Variable "buf" going out of scope leaks the storage it points to. Signed-off-by: Bart Van Assche --- diff --git a/t/memlock.c b/t/memlock.c index 3d3579ad..ebedb91d 100644 --- a/t/memlock.c +++ b/t/memlock.c @@ -26,6 +26,7 @@ static void *worker(void *data) first = 0; } } + free(buf); return NULL; }