> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# query-runner-not-released

> A TypeORM QueryRunner is not released in a finally block, so an error leaks its pooled connection.

## What it flags

A TypeORM `createQueryRunner()` is not released in `finally`, so an early return or failed transaction keeps the pooled connection.

## How to review or fix

Confirm no caller releases it, then call `release()` in `finally`.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "query-runner-not-released": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.