[VOL-4931] openoltAdapter: memory leak seen in long term tests
This patch is a prerequisite for changes in the openoltAdapter to eliminate memory leaks and must be merged first.
Change-Id: I2e35407aac20047312fe3cf8b1c345396e6a4bd3
diff --git a/pkg/techprofile/tech_profile_if.go b/pkg/techprofile/tech_profile_if.go
index 89a66b2..c936a56 100644
--- a/pkg/techprofile/tech_profile_if.go
+++ b/pkg/techprofile/tech_profile_if.go
@@ -25,6 +25,7 @@
type TechProfileIf interface {
SetKVClient(ctx context.Context, pathPrefix string) *db.Backend
+ CloseKVClient(ctx context.Context)
GetTechProfileInstanceKey(ctx context.Context, tpID uint32, uniPortName string) string
GetTPInstance(ctx context.Context, path string) (interface{}, error)
CreateTechProfileInstance(ctx context.Context, tpID uint32, uniPortName string, intfID uint32) (interface{}, error)