changed method of memsetting to address memory leak
@@ -1376,12 +1376,7 @@ array_list_insert(
array_list->current_size = array_list->current_size * 2;
array_list->data = (ion_fpos_t *) realloc(array_list->data, array_list->current_size * sizeof(ion_fpos_t));
-
- int i;
-
- for (i = old_size + 1; i < array_list->current_size - 1; i++) {
- memset(array_list->data + i * sizeof(ion_fpos_t), 0, sizeof(ion_fpos_t));
- }
+ memset(array_list->data + old_size * sizeof(ion_fpos_t), 0, sizeof(ion_fpos_t) * old_size);
if (NULL == array_list->data) {
free(array_list->data);
