t/memlock: Free allocated memory
authorBart Van Assche <bvanassche@acm.org>
Sat, 4 Jan 2020 22:07:54 +0000 (14:07 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sat, 4 Jan 2020 22:39:41 +0000 (14:39 -0800)
commita404c9bd161ec5d23c60fa661c9737e303e3cd65
treeac69c1d8a9da7be7d9121acbd831371c0a67839c
parent700ad386aa886fe4b38432f25aa8ee318031d95a
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 <bvanassche@acm.org>
t/memlock.c