Possible memory leak in modules/libcom/src/osi/os/default/osdThreadHooks.c

Bug #1863077 reported by Karl Vestin
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

In the epicsThreadHookAdd(EPICS_THREAD_HOOK_ROUTINE hook) function in modules/libcom/src/osi/os/default/osdThreadHooks.c memory is allocated for pHook. Then a mutex is calimed and if successful the hook is added to a list of hook. If th emutex fails however the memory for the pHook is not freed.

This is reported as an error by the Codacy static code analysis.

Codacy link: https://app.codacy.com/gh/epics-base/epics-base/file/42103575134/issues/source?bid=16430872&fileBranchId=16430872#l75

Tags: codacy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.