Skip to content

Commit 1634a3f

Browse files
author
Travis Foster
authored
Merge pull request #298 from kfiravr2/master
memory leak fix
2 parents 981c64c + 90f5441 commit 1634a3f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

storage/uniqueNugetDeploy/uniqueNugetDeploy.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ try {
3636
ngas = org.artifactory.addon.nuget.repomd.NuGetArtifactoryService.class
3737
} catch (MissingPropertyException ex) {}
3838

39+
def cpath = "plugins/uniqueNugetDeploy.properties"
40+
def cfile = new File(ctx.artifactoryHome.haAwareEtcDir, cpath)
41+
def config = new ConfigSlurper().parse(cfile.toURL())
42+
43+
3944
class FakeUriInfo implements UriInfo {
4045
MultivaluedMap<String,String> ps;
4146
public FakeUriInfo(MultivaluedMap<String,String> ps) {this.ps = ps}
@@ -62,9 +67,6 @@ class FakeUriInfo implements UriInfo {
6267

6368
storage {
6469
beforeCreate { item ->
65-
def cpath = "plugins/uniqueNugetDeploy.properties"
66-
def cfile = new File(ctx.artifactoryHome.haAwareEtcDir, cpath)
67-
def config = new ConfigSlurper().parse(cfile.toURL())
6870
def repoKeys = config.checkedRepos as String[]
6971
def filtKeys = config.filteredRepos as String[]
7072
if (!item || !(item.repoKey in filtKeys)) return

0 commit comments

Comments
 (0)