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

Fix around 30 memory leaks #31

Merged
merged 1 commit into from Sep 19, 2018
Merged

Fix around 30 memory leaks #31

merged 1 commit into from Sep 19, 2018

Conversation

kraih
Copy link
Contributor

@kraih kraih commented Sep 18, 2018

This should fix all the memory leaks i mentioned in #30. The way promises are used to wrap an event emitter API is really unfortunate, since it makes creating leaks very very easy. The two scripts i've used to test for leaks are here and here. So i should have most of the publisher and channel APIs covered.

@kraih
Copy link
Contributor Author

kraih commented Sep 18, 2018

The parts where i changed the resolve and reject values should be carefully reviewed. While i did not break any tests (or my own test scripts)... the test coverage is not great.

@SPodjasek SPodjasek merged commit 3531be8 into inway:master Sep 19, 2018
@SPodjasek
Copy link
Member

Thank you very much, I'll try to spend some time to extend unit testing

@kraih
Copy link
Contributor Author

kraih commented May 23, 2019

Could you please upload a new release to CPAN with these changes? We have production machines that need the patch, and applying it manually is not very nice.

SPodjasek added a commit that referenced this pull request May 23, 2019
Changelog diff is:

diff --git a/Changes b/Changes
index 29c44d8..75daeef 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 {{$NEXT}}

+0.2.2 2019-05-23T11:20:22Z
+  - Minor documentation fixes #32 (@sjn)
+  - fix around 30 memory leaks #31 (@kraih)
 0.2.1 2018-07-29T14:17:43Z
   - Fixed POD syntax, spelling & grammar errors #27,#28 (@gregoa)
   - Fixed POD error #26 (@manwar)
@SPodjasek
Copy link
Member

Done

SPodjasek added a commit that referenced this pull request Jul 24, 2019
Changelog diff is:

diff --git a/Changes b/Changes
index 75daeef..eadeda1 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 {{$NEXT}}

+0.2.3 2019-07-24T21:06:16Z
+  - Clarified documentation #33, #34 (@AdamWill)
 0.2.2 2019-05-23T11:20:22Z
   - Minor documentation fixes #32 (@sjn)
   - fix around 30 memory leaks #31 (@kraih)
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.

None yet

2 participants