Skip to content

Commit

Permalink
erasure_code: fix unaligned free error in perf apps on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Cornu, Marcel D <marcel.d.cornu@intel.com>
  • Loading branch information
mdcornu authored and pablodelara committed Nov 19, 2024
1 parent 00d6e6f commit 07f8028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions erasure_code/erasure_code_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 4 additions & 4 deletions erasure_code/erasure_code_update_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 07f8028

Please sign in to comment.