From 07f8028743e20a585675e51e0fcbba2455e84cd5 Mon Sep 17 00:00:00 2001 From: "Cornu, Marcel D" Date: Tue, 19 Nov 2024 13:46:12 +0000 Subject: [PATCH] erasure_code: fix unaligned free error in perf apps on windows Signed-off-by: Cornu, Marcel D --- erasure_code/erasure_code_perf.c | 4 ++-- erasure_code/erasure_code_update_perf.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erasure_code/erasure_code_perf.c b/erasure_code/erasure_code_perf.c index 7d6651a..df33ed5 100644 --- a/erasure_code/erasure_code_perf.c +++ b/erasure_code/erasure_code_perf.c @@ -272,8 +272,8 @@ main(int argc, char *argv[]) exit: free(err_list); for (i = 0; i < TEST_SOURCES; i++) { - free(buffs[i]); - free(temp_buffs[i]); + aligned_free(buffs[i]); + aligned_free(temp_buffs[i]); } return ret; } diff --git a/erasure_code/erasure_code_update_perf.c b/erasure_code/erasure_code_update_perf.c index 91aad8b..b2da352 100644 --- a/erasure_code/erasure_code_update_perf.c +++ b/erasure_code/erasure_code_update_perf.c @@ -379,10 +379,10 @@ main(int argc, char *argv[]) exit: free(err_list); for (i = 0; i < TEST_SOURCES; i++) { - free(buffs[i]); - free(temp_buffs[i]); - free(update_buffs[i]); - free(perf_update_buffs[i]); + aligned_free(buffs[i]); + aligned_free(temp_buffs[i]); + aligned_free(update_buffs[i]); + aligned_free(perf_update_buffs[i]); } return ret; }