From 0d52504dffdc76e03e2528a76af4984fe65355e6 Mon Sep 17 00:00:00 2001 From: Ankit Meel Date: Wed, 14 Oct 2020 17:26:55 +0530 Subject: [PATCH] BLI_ghash_performance_test: Fix memory leaks Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9210 --- .../blenlib/tests/performance/BLI_ghash_performance_test.cc | 2 ++ 1 file changed, 2 insertions(+) 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)