Skip to content

[OSS 2.x] Sqlite doesn't close temporary backup file handle after use #25950

@philjb

Description

@philjb

pkg.errors.Capture returns a closure. This is meant to be used in a defer where the returned closure is called at defer-time so it must be Capture(args)() but there is no error if is it only Capture(arg) which does nothing useful at defer time.

func Capture(rErr *error, fn func() error) func() {

Search for this mistake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions