Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-12-29 01:19:24 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-12-29 01:19:24 +0300
commit6ca6d29e6b9a9f4f02ac48d8c77030f528ef4325 (patch)
tree0295fec2005a9478c5dc12da44688b2705f4de8d /source/blender/blenlib/intern/math_statistics.c
parent971f9e1c25daeb8064b8e6dad31dc0cfa55ba3e3 (diff)
Fix memleaks in our gtests.
Diffstat (limited to 'source/blender/blenlib/intern/math_statistics.c')
-rw-r--r--source/blender/blenlib/intern/math_statistics.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_statistics.c b/source/blender/blenlib/intern/math_statistics.c
index bc7a80184aa..784f6904160 100644
--- a/source/blender/blenlib/intern/math_statistics.c
+++ b/source/blender/blenlib/intern/math_statistics.c
@@ -105,8 +105,6 @@ void BLI_covariance_m_vn_ex(
const int n, const float *cos_vn, const int nbr_cos_vn, const float *center, const bool use_sample_correction,
float *r_covmat)
{
- int i, j, k;
-
/* Note about that division: see https://en.wikipedia.org/wiki/Bessel%27s_correction.
* In a nutshell, it must be 1 / (n - 1) for 'sample data', and 1 / n for 'population data'...
*/
@@ -123,7 +121,7 @@ void BLI_covariance_m_vn_ex(
BLI_task_parallel_range_ex(0, n * n, &data, NULL, 0, covariance_m_vn_ex_task_cb, 0, false);
}
else {
- for (k = 0; k < n * n; k++) {
+ for (int k = 0; k < n * n; k++) {
covariance_m_vn_ex_task_cb(&data, NULL, k);
}
}