Leakhelp at linux_hal_common.hpp:382 No properties have been set. | edit properties Jump to warning location ↓ warning details... Show Events | Options LinuxConditionFactory::createCondition() .../linux/src/linux_hal_common.hpp expand/collapse OSCondition *createCondition() const { LinuxCondition *result = new LinuxCondition(); event Event 1: operator new() allocates and returns the resource of interest. Jump to next message hide event Event 2: LinuxCondition::LinuxCondition() will be invoked on the resource of interest. LinuxCondition::LinuxCondition() does not free it or save any references that are freed later. LinuxCondition::LinuxCondition() will be invoked on new (). See related event 1. Jump to previous message Jump to next message hide LinuxCondition::LinuxCondition() .../linux/src/linux_hal_common.hpp expand/collapse LinuxCondition() { event Event 3: this now references the resource of interest. this is set to new ()linux_hal_common.hpp:382 See related event 2. Jump to previous message Jump to next message hide event Event 4: OSCondition::OSCondition() will be invoked on the resource of interest. OSCondition::OSCondition() does not free it or save any references that are freed later. OSCondition::OSCondition() will be invoked on this, which evaluates to new ()linux_hal_common.hpp:382. See related event 3. Jump to previous message Jump to next message hide OSCondition::OSCondition() .../common/avbts_oscondition.hpp expand/collapse OSCondition() { event Event 5: this now references the resource of interest. this is set to new ()linux_hal_common.hpp:382 See related event 4. Jump to previous message Jump to next message hide wait_count = 0; }; event Event 6: this has gone out of scope and no longer references the resource of interest. See related event 5. Jump to previous message Jump to next message hide _private = NULL; } event Event 7: this has gone out of scope and no longer references the resource of interest. See related event 3. Jump to previous message Jump to next message hide event Event 8: result now references the resource of interest. result is set to new () See related event 1. Jump to previous message Jump to next message hide return result->initialize() ? result : NULL; event Event 9: LinuxCondition::initialize() will be invoked on the resource of interest. LinuxCondition::initialize() does not free it or save any references that are freed later. LinuxCondition::initialize() will be invoked on result, which evaluates to new ()linux_hal_common.hpp:382. See related event 8. Jump to previous message Jump to next message hide LinuxCondition::initialize() .../linux/src/linux_hal_common.cpp expand/collapse bool LinuxCondition::initialize() { event Event 10: this now references the resource of interest. this is set to new ()linux_hal_common.hpp:382 See related event 9. Jump to previous message Jump to next message hide int lock_c; _private = new LinuxConditionPrivate; if( _private == NULL ) return false; Skipping "if" Event 11: Skipping "if". _private == __null evaluates to false. Jump to previous message Jump to next message hide pthread_cond_init(&_private->port_ready_signal, NULL); Undefined function Event 12: pthread_cond_init() is an Undefined Function. Jump to previous message Jump to next message hide lock_c = pthread_mutex_init(&_private->port_lock, NULL); Undefined function Event 13: pthread_mutex_init() is an Undefined Function. Jump to previous message Jump to next message hide if (lock_c != 0) Taking true branch Event 14: Taking true branch. lock_c != 0 evaluates to true. Jump to previous message Jump to next message hide return false; event Event 15: this has gone out of scope and no longer references the resource of interest. See related event 10. Jump to previous message Jump to next message hide Event 16: result->initialize() evaluates to false. Jump to previous message Jump to next message hide event Event 17: result has gone out of scope and no longer references the resource of interest. See related event 8. Jump to previous message Jump to next message hide Leak help There are no remaining references to the resource new () from linux_hal_common.hpp:382. The resource was allocated at linux_hal_common.hpp:382. The last reference was lost at linux_hal_common.hpp:383. The resource was not freed. The issue can occur if the highlighted code executes. See related events 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, and 17. Show: All events | Only primary events