Merge pull request #4408 from mugitya03/MLK-3
Ensure BMK_timedFnState is always freed in benchMem
This commit is contained in:
@@ -890,6 +890,7 @@ static int benchMem(unsigned scenarioID,
|
|||||||
if (!BMK_isSuccessful_runOutcome(bOutcome)) {
|
if (!BMK_isSuccessful_runOutcome(bOutcome)) {
|
||||||
DISPLAY("ERROR: Scenario %u: %s \n", scenarioID, ZSTD_getErrorName(BMK_extract_errorResult(bOutcome)));
|
DISPLAY("ERROR: Scenario %u: %s \n", scenarioID, ZSTD_getErrorName(BMK_extract_errorResult(bOutcome)));
|
||||||
errorcode = 1;
|
errorcode = 1;
|
||||||
|
BMK_freeTimedFnState(tfs);
|
||||||
goto _cleanOut;
|
goto _cleanOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user