call free for memory pointed to by task variable before task variable is deleted

This commit is contained in:
Jeff Hill
2001-10-02 22:22:51 +00:00
parent 37d45a57f3
commit e27671e8d6
+1 -1
View File
@@ -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,