1
1

Make sure that when we destruct the pointer array that we set the address to NULL and size to 0. This will help to flag accidental usage of a destructed pointer array object.

This commit was SVN r21216.
Этот коммит содержится в:
Josh Hursey 2009-05-12 14:13:07 +00:00
родитель 424d9ed0c8
Коммит ec6c5bf5e9

Просмотреть файл

@ -59,8 +59,11 @@ static void opal_pointer_array_destruct(opal_pointer_array_t *array)
/* free table */
if( NULL != array->addr) {
free(array->addr);
array->addr = NULL;
}
array->size = 0;
OBJ_DESTRUCT(&array->lock);
}