Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent memory leak #213

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Prevent memory leak #213

merged 1 commit into from
Dec 19, 2018

Conversation

Pangoraw
Copy link
Contributor

Not adding resp.Body.Close() will cause the TCP packet to leak since go expects us to close the query (source).

@codecov
Copy link

codecov bot commented Dec 19, 2018

Codecov Report

Merging #213 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #213   +/-   ##
======================================
  Coverage    58.2%   58.2%           
======================================
  Files         179     179           
  Lines        5150    5150           
======================================
  Hits         2997    2997           
+ Misses       1826    1825    -1     
- Partials      327     328    +1

@ziflex ziflex merged commit 6bc4b3e into MontFerret:master Dec 19, 2018
@ziflex
Copy link
Member

ziflex commented Dec 19, 2018

@Pangoraw good catch! Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants