Browse Source
Only allocate `MsgSampleRateCorrection` when a feedback message queue is available. The message was previously allocated before checking `m_autoRWBalance` and `m_feedbackMessageQueue`. When either condition was false, the message was never queued and its allocation was leaked. Coverity CID 652413 reported a `RESOURCE_LEAK` after tracing the allocation from `MsgSampleRateCorrection::create()` to the point where the local pointer went out of scope without being transferred to the feedback queue. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue