BLI_ghash_performance_test: Fix memory leaks

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D9210
This commit is contained in:
Ankit Meel 2020-10-14 17:26:55 +05:30
parent d3b59d1358
commit 0d52504dff
1 changed files with 2 additions and 0 deletions

View File

@ -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)