Project

General

Profile

Actions

Bug #6235

closed

Call to malloc not checked in thread_pthread.c

Added by rubysubmit (Ruby Submit) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.2p290
Backport:
[ruby-core:43960]

Description

File: thread_pthread.c

struct cached_thread_entry *entry =
(struct cached_thread_entry *)malloc(sizeof(struct cached_thread_entry));

struct timeval tv;
struct timespec ts;
gettimeofday(&tv, 0);
ts.tv_sec = tv.tv_sec + 60;
ts.tv_nsec = tv.tv_usec * 1000;

pthread_mutex_lock(&thread_cache_lock);
{
entry->th_area = &th_area;
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0