Spdk/test/lib/blobfs/cache_ut
Jim Harris 5490f17328 test/blobfs: fix a couple of unit test memory leaks
In the cache_append_no_cache test case, we need to
sync the file first, before calling cache_free_buffers().
Otherwise the buffers do not really get freed since they
contain dirty data.

This fixes a couple of memory leak bugs detected with
CONFIG_ASAN=y.

Reported-by: John Meneghini <john.meneghini@netapp.com>
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: If1ff6ed7d9e7a6dc67af0a2baf3b2555ace610ee
2017-04-03 10:10:12 -07:00
..
.gitignore blobfs: Add a lightweight filesystem built on the blobstore 2017-03-24 14:15:45 -07:00
cache_ut.c test/blobfs: fix a couple of unit test memory leaks 2017-04-03 10:10:12 -07:00
Makefile blobfs: Add a lightweight filesystem built on the blobstore 2017-03-24 14:15:45 -07:00