Skip to content

Commit f297ba6

Browse files
committed
pkeyread: Fix memory leak of variable times
Fixes: openssl/project#1239 Signed-off-by: Norbert Pocs <[email protected]> Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Saša Nedvědický <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Richard Levitte <[email protected]> (Merged from #28)
1 parent 7202bf7 commit f297ba6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/pkeyread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,13 @@ int main(int argc, char * const argv[])
337337
if (!perflib_run_multi_thread_test(do_f[f], threadcount, &duration)) {
338338
fprintf(stderr, "Failed to run the test %s in %s format]\n",
339339
sample_names[k], format_names[f]);
340+
OPENSSL_free(times);
340341
return EXIT_FAILURE;
341342
}
342343
report_result(k, f, terse);
343344
}
344345
}
345346

347+
OPENSSL_free(times);
346348
return EXIT_SUCCESS;
347349
}

0 commit comments

Comments
 (0)