client: RequestFL lock during dtor

pacify valgrind over what is likely a false positive
This commit is contained in:
Michael Davidsaver
2026-05-19 08:58:00 -07:00
parent 7ab3ef0576
commit 825a8c2ae7
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -69,6 +69,7 @@ struct RequestFL {
std::vector<Value> unused;
explicit RequestFL(size_t limit) :limit(limit) {}
~RequestFL();
};
struct RequestInfo {
+6
View File
@@ -21,6 +21,12 @@ typedef epicsGuard<epicsMutex> Guard;
DEFINE_LOGGER(monevt, "pvxs.client.monitor");
DEFINE_LOGGER(io, "pvxs.client.io");
RequestFL::~RequestFL()
{
Guard G(lock);
unused.clear(); // pacify valgrind with free() under lock
}
namespace {
struct Entry {
Value val;