Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ libgtest-dev make libssl-dev
sudo apt-get install -y redis valgrind
sudo apt-get install -y valgrind
sudo apt-get install -y libsnappy-dev libzstd-dev liblz4-dev
- uses: actions/checkout@v2
- name: make
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
sudo dnf -y update
sudo dnf install -y cmake gcc-c++ gtest-devel make
sudo dnf install -y openssl-devel redis valgrind
sudo dnf install -y openssl-devel valgrind
sudo dnf install -y snappy-devel libzstd-devel lz4-devel zlib-devel
- name: make
run: make KAFKA=y
Expand All @@ -63,6 +63,7 @@ jobs:
prepare: |
pkg update -f
pkg install -y cmake gmake gcc pkgconf openssl devel/googletest
pkg install -y valgrind
pkg install -y snappy zstd liblz4
run: |
freebsd-version
Expand Down
2 changes: 2 additions & 0 deletions src/kernel/thrdpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ static void __thrdpool_terminate(int in_pool, thrdpool_t *pool)
pthread_mutex_unlock(&pool->mutex);
if (!pthread_equal(pool->tid, __zero_tid))
pthread_join(pool->tid, NULL);

pthread_cond_destroy(&term);
}

static int __thrdpool_create_threads(size_t nthreads, thrdpool_t *pool)
Expand Down
2 changes: 2 additions & 0 deletions src/manager/UpstreamManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class __UpstreamManager
{
for (UPSGroupPolicy *policy : this->upstream_policies)
delete policy;

pthread_mutex_destroy(&mutex);
}

pthread_mutex_t mutex;
Expand Down
2 changes: 2 additions & 0 deletions src/manager/WFGlobal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ class __ExecManager
kv.second->deinit();
delete kv.second;
}

pthread_rwlock_destroy(&rwlock_);
}

private:
Expand Down
5 changes: 5 additions & 0 deletions src/nameservice/UpstreamPolicies.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class EndpointGroup
this->weight = 0;
}

~EndpointGroup()
{
pthread_mutex_destroy(&this->mutex);
}

EndpointAddress *get_one(WFNSTracing *tracing);
EndpointAddress *get_one_backup(WFNSTracing *tracing);

Expand Down
2 changes: 2 additions & 0 deletions src/nameservice/WFNameService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,7 @@ WFNameService::~WFNameService()
rb_erase(&entry->rb, &this->root);
free(entry);
}

pthread_rwlock_destroy(&this->rwlock);
}

3 changes: 3 additions & 0 deletions src/nameservice/WFServiceGovernance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ WFServiceGovernance::~WFServiceGovernance()
{
for (EndpointAddress *addr : this->servers)
delete addr;

pthread_rwlock_destroy(&this->rwlock);
pthread_mutex_destroy(&this->breaker_lock);
}

PolicyAddrParams::PolicyAddrParams()
Expand Down