call free for memory pointed to by task variable before task variable is deleted
This commit is contained in:
@@ -120,8 +120,8 @@ static void createFunction(EPICSTHREADFUNC func, void *parm)
|
||||
/*Make sure that papTSD is still 0 after that call to taskVarAdd*/
|
||||
papTSD = 0;
|
||||
(*func)(parm);
|
||||
taskVarDelete(tid,(int *)&papTSD);
|
||||
free(papTSD);
|
||||
taskVarDelete(tid,(int *)&papTSD);
|
||||
}
|
||||
|
||||
epicsThreadId epicsThreadCreate(const char *name,
|
||||
|
||||
Reference in New Issue
Block a user