]> git.openfabrics.org - ~shefty/librdmacm.git/commit
indexer: Free index_map resources when cleared
authorSean Hefty <sean.hefty@intel.com>
Thu, 22 May 2014 23:13:08 +0000 (16:13 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 22 May 2014 23:13:08 +0000 (16:13 -0700)
commit386b97e807917a8ca7f6d12d66e34dc9441f7502
tree42cbf9df83aad01df66583196cadfabf1155a0aa
parent397b1a79f077c2fd1ae35be15bc3a7d8918800f1
indexer: Free index_map resources when cleared

Free memory allocated for index map entries when they are no
longer in use.  To handle this, count the number of entries
stored by the index map item arrays and release the arrays when
no items are being tracked.

This reduces valgrind noise.

Problem reported by: Hannes Weisbach <hannes_weisbach@gmx.net>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/indexer.c
src/indexer.h