Skip to content

Commit

Permalink
FIx memory leak issue. (#826)
Browse files Browse the repository at this point in the history
New data was always being added to "tablesUpdatedInUTL" variable and never being cleared when SD smart cache was not enabled.
Issue: 106111
  • Loading branch information
iroqueta authored Feb 1, 2024
1 parent 6f50959 commit 736f16b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ public boolean isEnabled()

@Override
public void setUpdated(String table, int handle) {
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
if (isEnabled() && ! tablesUpdatedInUTLHandle.contains(table))
tablesUpdatedInUTLHandle.add(table);

if (isEnabled()) {
Vector<String> tablesUpdatedInUTLHandle = getTablesUpdatedInUTL(handle);
if (!tablesUpdatedInUTLHandle.contains(table))
tablesUpdatedInUTLHandle.add(table);
}
}

private Vector<String> getTablesUpdatedInUTL(Integer handle){
Expand Down

0 comments on commit 736f16b

Please sign in to comment.