Skip to content

Commit 736f16b

Browse files
authored
FIx memory leak issue. (#826)
New data was always being added to "tablesUpdatedInUTL" variable and never being cleared when SD smart cache was not enabled. Issue: 106111
1 parent 6f50959 commit 736f16b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

java/src/main/java/com/genexus/specific/java/GXSmartCacheProvider.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ public boolean isEnabled()
152152

153153
@Override
154154
public void setUpdated(String table, int handle) {
155-
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
156-
if (isEnabled() && ! tablesUpdatedInUTLHandle.contains(table))
157-
tablesUpdatedInUTLHandle.add(table);
158-
155+
if (isEnabled()) {
156+
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
157+
if (!tablesUpdatedInUTLHandle.contains(table))
158+
tablesUpdatedInUTLHandle.add(table);
159+
}
159160
}
160161

161162
private Vector<String> getTablesUpdatedInUTL(Integer handle){

0 commit comments

Comments
 (0)