Commit: 0d52504dffdc76e03e2528a76af4984fe65355e6 Author: Ankit Meel Date: Wed Oct 14 17:26:55 2020 +0530 Branches: master https://developer.blender.org/rB0d52504dffdc76e03e2528a76af4984fe65355e6
BLI_ghash_performance_test: Fix memory leaks Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9210 =================================================================== M source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc =================================================================== 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) _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs