]> git.ipfire.org Git - thirdparty/zstd.git/commit
Ensure BMK_timedFnState is always freed in benchMem 4408/head
authorjinyaoguo <guo846@purdue.edu>
Thu, 12 Jun 2025 23:52:58 +0000 (19:52 -0400)
committerjinyaoguo <guo846@purdue.edu>
Thu, 12 Jun 2025 23:52:58 +0000 (19:52 -0400)
commitcad0b72ad8ca6d413843af453e274750ba717012
tree34d460f7520c147d9fac1da348a19a4fce54bb23
parent5e6bdf5e3dee6d977ea87b2c50c3bcb14fed3603
Ensure BMK_timedFnState is always freed in benchMem

When an error occurs in BMK_isSuccessful_runOutcome, the code
previously skipped the call to BMK_freeTimedFnState(tfs),
leaking the allocated tfs object.
Fiexed by calling BMK_freeTimedFnState(tfs) before goto _cleanOut.
tests/fullbench.c