Skip to content

Commit

Permalink
Fix memory leak in metadata cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Sep 6, 2024
1 parent 25282f5 commit b62288a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/earthkit/data/readers/grib/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import logging
import os
import weakref
from collections import defaultdict
from functools import cached_property

Expand Down Expand Up @@ -250,7 +251,7 @@ def __init__(self, path, offset, length, backend, manager=None):
self.path = path
self._offset = offset
self._length = length
self._manager = manager
self._manager = weakref.proxy(manager)

@property
def handle(self):
Expand Down

0 comments on commit b62288a

Please sign in to comment.