gthr-vxworks.h (__ehdtor): Fix memory leak.
authorMike Stump <mrs@wrs.com>
Fri, 4 Dec 1998 00:28:34 +0000 (00:28 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 4 Dec 1998 00:28:34 +0000 (17:28 -0700)
commit0fcff08299c93ab75e5af2c9c88fc2d437c64c68
tree110b6dc685ee9f0842de2dda6c788f9d5ffd6539
parent9f643ff81def49d34790b78d4ce68fe2b1bac4c0
gthr-vxworks.h (__ehdtor): Fix memory leak.

        * gthr-vxworks.h (__ehdtor): Fix memory leak.  The delete hook
        runs in the context of the deleter, not the deletee, so we must
        use taskVarGet to find the correct memory to free.
        (__gthread_key_create): Initialize the task
        variable subsystem so that the task variable is still active when
        the delete hook is run.

From-SVN: r24079
gcc/ChangeLog
gcc/gthr-vxworks.h