The GitHub Actions job "CI" on kvrocks.git/pause has failed.
Run started by GitHub user Paragrf (triggered by git-hulk).

Head commit for run:
2b0fc5aa0a6c0e0a6fe4245f55b1a09a47572bc8 / paragrf <[email protected]>
fix(worker): free evconnlistener objects in destructor to prevent memory leak

Worker::~Worker() never freed the evconnlistener objects stored in
listen_events_, causing a memory leak when a Worker is destroyed without
calling Stop() first (e.g. in unit tests).

Fix by iterating listen_events_ in the destructor and calling
evconnlistener_free() on each entry. Also clear listen_events_ in
Stop() after freeing, so that the destructor loop becomes a no-op when
Stop() has already been called, avoiding double-free.

Made-with: Cursor

Report URL: https://github.com/apache/kvrocks/actions/runs/22514628977

With regards,
GitHub Actions via GitBox

Reply via email to