linodego
linodego copied to clipboard
[Bug]: possible memory leak when no transport is specified
go Version
1.23
API Wrapper Version
v1.46.0
Code Snippet
Expected Behavior
No memory leak 😅
Actual Behavior
Steps to Reproduce
call multiple times
linodego.NewClient(&http.Client{})
Cause is resty.
When no transport is provided, it doesn't use DefaultTransport but create it own:
https://github.com/go-resty/resty/blob/2b771ba9876863c8de9c28c6811584529d51caaf/transport.go#L17
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days