common-workflow-language / schema_salad

Semantic Annotations for Linked Avro Data
https://www.commonwl.org/v1.2/SchemaSalad.html
Apache License 2.0
72 stars 62 forks source link

memory leak #675

Closed mr-c closed 1 year ago

mr-c commented 1 year ago

Tester from @GlassOfWhiskey (using cwl-utils)

#!/usr/bin/env python

import objgraph
import sys

import cwl_utils.parser

for _ in range(5):
   growth = objgraph.growth(limit=50)
   cwl_utils.parser.load_document_by_uri(sys.argv[1])
objgraph.show_growth(limit=50)

# growth = objgraph.growth(limit=50)
# assert len(growth) == 0

python memleak.py cwl-v1.2/tests/formattest2.cwl # or any CWL file

mr-c commented 1 year ago

Fixed in https://github.com/common-workflow-language/schema_salad/commit/88a14b773e4f9d2c88c54fa75a0af29b731f7c97 !!!