[metrics-bugs] #30544 [Metrics/Library]: Using try-with-resources or close resource

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jun 4 03:52:03 UTC 2019


#30544: Using try-with-resources or close resource
-----------------------------+------------------------------
 Reporter:  fava             |          Owner:  metrics-team
     Type:  defect           |         Status:  new
 Priority:  Medium           |      Milestone:
Component:  Metrics/Library  |        Version:
 Severity:  Major            |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:
-----------------------------+------------------------------

Comment (by fava):

 Replying to [comment:1 karsten]:
 > Would you be able to submit a patch that fixes one instance of this
 issue? It could be a GitHub branch or a patch created with `git format-
 patch`.

 Replying to [comment:2 irl]:
 > GitHub mirror is here if you want to fork it:
 ​https://github.com/torproject/metrics-lib

 Please find in attachment my patch files [[attachment:patch-fix-resource-
 leak.zip]]
 There is also a specific github branch https://github.com/f-a-v-a/metrics-
 lib/tree/30544-try-with-resources .

 Please let me know your code review,
 Best Regards

 Let me kn

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30544#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list