client: RequestFL lock during dtor
pacify valgrind over what is likely a false positive
This commit is contained in:
@@ -69,6 +69,7 @@ struct RequestFL {
|
||||
std::vector<Value> unused;
|
||||
|
||||
explicit RequestFL(size_t limit) :limit(limit) {}
|
||||
~RequestFL();
|
||||
};
|
||||
|
||||
struct RequestInfo {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user