commit | 1afeccea20e3c5dc9d2f4d39e090438153cc84dc | [log] [tgz] |
---|---|---|
author | tanbangcheng <tanbangcheng@baicells.com> | Sun Nov 12 11:41:28 2017 +0800 |
committer | tanbangcheng <tanbangcheng@baicells.com> | Sun Nov 12 11:41:28 2017 +0800 |
tree | 4746e624383ce38b84e4a0a36ba15f2693e530c0 | |
parent | 5789e1ca614fa487f8c71a7b1137de2ba04a4fa9 [diff] |
Fix memory leak of OVSDB Change-Id: Iebe692eda2af68400f19b4de40db5cd4afba802e
diff --git a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java index 862d70c..3f8ec1c 100644 --- a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java +++ b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java
@@ -1387,6 +1387,9 @@ } String methodName = requestMethod.get(requestId); sf.set(FromJsonUtil.jsonResultParser(response, methodName)); + + requestResult.remove(requestId); + requestMethod.remove(requestId); } @Override