Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 126 by WFXiang08: Memory is not de-allocated in slabs.c/grow_slab_list
http://code.google.com/p/memcached/issues/detail?id=126

Memory is not de-allocated in slabs.c/grow_slab_list

static int grow_slab_list (const unsigned int id) {
    slabclass_t *p = &slabclass[id];
    if (p->slabs == p->list_size) {

        size_t new_size =  (p->list_size != 0) ? p->list_size * 2 : 16;
        void *new_list = realloc(p->slab_list, new_size * sizeof(void *));
        if (new_list == 0) return 0;

        // Bug Here  old slab_list is not freed
        p->list_size = new_size;
        p->slab_list = new_list;
    }
    return 1;
}


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

To unsubscribe from this group, send email to memcached+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to