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:
authorAnkit Meel <ankitjmeel@gmail.com>2020-10-14 14:56:55 +0300
committerAnkit Meel <ankitjmeel@gmail.com>2020-10-14 15:35:47 +0300
commit0d52504dffdc76e03e2528a76af4984fe65355e6 (patch)
tree389d6ce73ee9816b9585e8b83c8a979d59edef56 /source/blender/blenlib/tests/performance
parentd3b59d1358424371725526de824f45aa419cc13d (diff)
BLI_ghash_performance_test: Fix memory leaks
Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9210
Diffstat (limited to 'source/blender/blenlib/tests/performance')
-rw-r--r--source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc b/source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc
index f93c40f05fb..6400bec93f9 100644
--- a/source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc
+++ b/source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc
@@ -310,6 +310,7 @@ static void randint_ghash_tests(GHash *ghash, const char *id, const unsigned int
}
BLI_ghash_free(ghash, NULL, NULL);
+ MEM_freeN(data);
printf("========== ENDED %s ==========\n\n", id);
}
@@ -506,6 +507,7 @@ static void multi_small_ghash_tests_one(GHash *ghash, RNG *rng, const unsigned i
}
BLI_ghash_clear(ghash, NULL, NULL);
+ MEM_freeN(data);
}
static void multi_small_ghash_tests(GHash *ghash, const char *id, const unsigned int nbr)