commit | bf3f7a8af2db33cd22d2e8dbc455549298538e6a | [log] [tgz] |
---|---|---|
author | Jim Hahn <jrh3@att.com> | Wed Nov 13 13:05:58 2019 -0500 |
committer | Jim Hahn <jrh3@att.com> | Wed Nov 13 13:06:52 2019 -0500 |
tree | eca52156a0e1c2038c1b3b19e6515fa269af140d | |
parent | c34a4b6b2e111462cde7f5663b8fbbc4ad86fc7e [diff] |
Remove duplicate dao object Code was creating the DAO object twice - removed the extra line. Note: this properly doesn't fix the race condition, but it should fix a memory leak. Change-Id: I5f5c6002d42f9bb0525d1b5013b1300e80264645 Issue-ID: POLICY-1832 Signed-off-by: Jim Hahn <jrh3@att.com>
diff --git a/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java b/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java index 565eb9a..9971454 100644 --- a/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java +++ b/models-provider/src/main/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderImpl.java
@@ -111,7 +111,6 @@ daoParameters.setJdbcProperties(jdbcProperties); - pfDao = new PfDaoFactory().createPfDao(daoParameters); try { pfDao = new PfDaoFactory().createPfDao(daoParameters); pfDao.init(daoParameters);