diff options
Diffstat (limited to 'linuxthreads/sysdeps/pthread/timer_create.c')
-rw-r--r-- | linuxthreads/sysdeps/pthread/timer_create.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_create.c b/linuxthreads/sysdeps/pthread/timer_create.c index 795f94c7d2..d63cda0687 100644 --- a/linuxthreads/sysdeps/pthread/timer_create.c +++ b/linuxthreads/sysdeps/pthread/timer_create.c @@ -178,7 +178,10 @@ timer_create (clock_id, evp, timerid) if (thread != NULL) __timer_thread_dealloc (thread); if (newtimer != NULL) - __timer_dealloc (newtimer); + { + timer_delref (newtimer); + __timer_dealloc (newtimer); + } } pthread_mutex_unlock (&__timer_mutex); |