]> git.openfabrics.org - ~ardavis/dapl.git/commit
libdat: static provider entries created for local SR database not freed
authorArlin Davis <arlin.r.davis@intel.com>
Tue, 7 Dec 2010 00:06:47 +0000 (16:06 -0800)
committerArlin Davis <arlin.r.davis@intel.com>
Tue, 7 Dec 2010 00:06:47 +0000 (16:06 -0800)
commit04d577b6b5232d1eb7a741caa963e6181008ebd6
treeea8d271f5c73a75dbdc29818060098e64ee64d45
parent9acb2c022a40d9a92a7aad5663be4ad02434de2f
libdat: static provider entries created for local SR database not freed

During load (dat_sr_init) the SR database is created with all dat.conf entries
but are never cleaned up during unload. Add new functions dat_sr_remove_all()
and dat_sr_remove() calls to cleanup and deallocate SR database entries and
database via dat_sr_fini().

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
dat/common/dat_sr.c
dat/common/dat_sr.h