Skip to content

Web Storage Maybe leaks SQLite connections when database initialization fails #64640

Description

@Archkon

Version

latest main branch

Platform


Subsystem

No response

What steps will reproduce the bug?

use broken db or many of condition

How often does it reproduce? Is there a required condition?

Every failed init

What is the expected behavior? Why is that the expected behavior?

A connection created by sqlite3_open() should be closed whenever database initialization fails. Repeated failed Web Storage operations should not increase the number of open file descriptors.

What do you see instead?

The number of open descriptors increases with every failed initialization attempt.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    sqliteIssues and PRs related to the SQLite subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions