Possible memory leak in modules/libcom/src/osi/os/vxWorks/osdThread.c

Bug #1863079 reported by Karl Vestin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
New
Undecided
Unassigned

Bug Description

In the void epicsThreadMap ( EPICS_THREAD_HOOK_ROUTINE func ) function in modules/libcom/src/osi/os/vxWorks/osdThread.c a realloc is used on taskIdList. If the realloc fails the original pointer will not be freed, causing a possible memory leak.

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

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

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.