Skip to content

Commit

Permalink
Fix memory leak (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Ignatev authored May 25, 2022
1 parent abd53aa commit 41eec90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aeron.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ void poll_handler(void *clientd, const uint8_t *buffer, size_t length, __attribu
subscriber->handler.param_count = 1;
subscriber->handler.params = args;
zend_call_function(&subscriber->handler, &subscriber->handler_cache);

zval_ptr_dtor(&args[0]);
}

PHP_METHOD(Aeron_Subscriber, __construct)
Expand Down

0 comments on commit 41eec90

Please sign in to comment.