Skip to content

memory leaking in Query method #28

@ws6

Description

@ws6

Hi mattn,
it seems the Query function has memory leaking issue.
https://github.com/mattn/go-adodb/blob/master/adodb.go#L61
even I did a defer rows.Close()

The leaking correlated to number of queries.

here is how I used it. Appreciated your help.
```
rows, err := db.Query(query)
if err != nil {
return nil, err
}
defer rows.Close()
for rows.Next() {
if err := rows.Scan(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions