Public bug reported:
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
** Affects: epics-base
Importance: Undecided
Status: New
** Tags: codacy
--
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1863077
Title:
Possible memory leak in
modules/libcom/src/osi/os/default/osdThreadHooks.c
Status in EPICS Base:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1863077/+subscriptions
- Navigate by Date:
- Prev:
[Bug 1863076] [NEW] Printf format string not matching parameter count in modules/libcom/src/osi/os/default/osdNetIntf.c Karl Vestin via Core-talk
- Next:
[Bug 1863079] [NEW] Possible memory leak in modules/libcom/src/osi/os/vxWorks/osdThread.c Karl Vestin via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
[Bug 1863076] [NEW] Printf format string not matching parameter count in modules/libcom/src/osi/os/default/osdNetIntf.c Karl Vestin via Core-talk
- Next:
[Bug 1863079] [NEW] Possible memory leak in modules/libcom/src/osi/os/vxWorks/osdThread.c Karl Vestin via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|