Commit a4c835e7 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak. (descriptive_stat_tool): Plug leak. (correlation_tool): Plug

1999-09-19  Morten Welinder  <terra@diku.dk>

	* src/analysis-tools.c (covariance_tool): Plug leak.
	(descriptive_stat_tool): Plug leak.
	(correlation_tool): Plug leak.
	(ranking_tool): Plug leak.
	(anova_single_factor_tool): Plug leak.
	(sampling_tool): Don't read past array.

	* src/sheet.c (sheet_destroy): Plug leak.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Plug leak.
parent 9b3b8ab2
1999-09-19 Morten Welinder <terra@diku.dk>
* src/analysis-tools.c (covariance_tool): Plug leak.
(descriptive_stat_tool): Plug leak.
(correlation_tool): Plug leak.
(ranking_tool): Plug leak.
(anova_single_factor_tool): Plug leak.
(sampling_tool): Don't read past array.
* src/sheet.c (sheet_destroy): Plug leak.
* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Plug leak.
1999-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (range_is_homogeneous) : Ignore results from
......
1999-09-19 Morten Welinder <terra@diku.dk>
* src/analysis-tools.c (covariance_tool): Plug leak.
(descriptive_stat_tool): Plug leak.
(correlation_tool): Plug leak.
(ranking_tool): Plug leak.
(anova_single_factor_tool): Plug leak.
(sampling_tool): Don't read past array.
* src/sheet.c (sheet_destroy): Plug leak.
* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Plug leak.
1999-09-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (range_is_homogeneous) : Ignore results from
......
......@@ -391,6 +391,7 @@ correlation_tool (Workbook *wb, Sheet *sheet,
for (i=0; i<vars; i++)
free_data_set(&data_sets[i]);
g_free (data_sets);
return 0;
}
......@@ -537,6 +538,7 @@ covariance_tool (Workbook *wb, Sheet *sheet,
for (i=0; i<vars; i++)
free_data_set(&data_sets[i]);
g_free (data_sets);
return 0;
}
......@@ -855,6 +857,7 @@ descriptive_stat_tool (Workbook *wb, Sheet *current_sheet,
for (i=0; i<vars; i++)
free_data_set(&data_sets[i]);
g_free (data_sets);
return 0;
}
......@@ -927,7 +930,7 @@ int sampling_tool (Workbook *wb, Sheet *sheet, Range *input_range,
qsort(index_tbl, size, sizeof(int),
int_compare);
n = 0;
while (current != NULL) {
while (n < size) {
if (counter++ == index_tbl[n]) {
sprintf(buf, "%f",
*((float_t *) current->data));
......@@ -2082,6 +2085,7 @@ int ranking_tool (Workbook *wb, Sheet *sheet, Range *input_range,
for (i=0; i<vars; i++)
free_data_set(&data_sets[i]);
g_free (data_sets);
return 0;
}
......@@ -2271,6 +2275,7 @@ int anova_single_factor_tool (Workbook *wb, Sheet *sheet, Range *range,
for (i=0; i<vars; i++)
free_data_set(&data_sets[i]);
g_free (data_sets);
return 0;
}
......
......@@ -405,6 +405,7 @@ dialog_cell_sort(Workbook * inwb, Sheet * sheet)
sort_cell_range(sheet, array, sort_flow.num_clause,
start_col, start_row,
end_col, end_row);
g_free (array);
} else
sort_flow.retry = 0;
}
......
......@@ -2386,6 +2386,9 @@ sheet_destroy (Sheet *sheet)
g_hash_table_foreach (sheet->cell_hash, cell_hash_free_key, NULL);
g_hash_table_destroy (sheet->cell_hash);
if (sheet->dependency_hash)
g_hash_table_destroy (sheet->dependency_hash);
sheet->signature = 0;
g_free (sheet);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment