---
id: pr-tilelang-1281
repo: tile-ai/tilelang
pr: 1281
title: '[Fix] Fix memory leak bug'
author: kurisu6912
date: '2025-11-19'
url: https://github.com/tile-ai/tilelang/pull/1281
source_category: upstream-code
architectures:
- sm100
tags:
- tile-dsl
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: cd681e6384c72fb8fd0375e21b58791e549ce8fc
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- testing/python/language/test_tilelang_capture.py
- tilelang/language/v2/ast.py
- tilelang/language/v2/builder.py
- tilelang/language/v2/utils.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1281
head_ref_oid: 82e425b6b519867caeecd692b28e976b71fd97ba
---
# [Fix] Fix memory leak bug

- Repository: `tile-ai/tilelang`
- PR: [1281](https://github.com/tile-ai/tilelang/pull/1281)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `testing/python/language/test_tilelang_capture.py`
- `tilelang/language/v2/ast.py`
- `tilelang/language/v2/builder.py`
- `tilelang/language/v2/utils.py`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-1281`
