Skip to content

Commit 24c63bb

Browse files
ref: fix potential memory leak in CombinedQuerysetPaginator (#80455)
instance state was being stored on the class <!-- Describe your PR here. -->
1 parent 54d389b commit 24c63bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/api/paginator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,13 @@ class CombinedQuerysetPaginator:
582582

583583
multiplier = 1000000 # Use microseconds for date keys.
584584
using_dates = False
585-
model_key_map = {}
586585

587586
def __init__(self, intermediaries, desc=False, on_results=None, case_insensitive=False):
588587
self.desc = desc
589588
self.intermediaries = intermediaries
590589
self.on_results = on_results
591590
self.case_insensitive = case_insensitive
591+
self.model_key_map = {}
592592
for intermediary in list(self.intermediaries):
593593
if intermediary.is_empty:
594594
self.intermediaries.remove(intermediary)

0 commit comments

Comments
 (0)