Skip to content

Commit

Permalink
Fix a memory leak in the speed app
Browse files Browse the repository at this point in the history
Make sure we free the ecdsa_key object after we have finished using it.
  • Loading branch information
mattcaswell committed Aug 12, 2024
1 parent 644c9af commit 2287dc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -3266,6 +3266,7 @@ int speed_main(int argc, char **argv)
/* if longer than 10s, don't do any more */
stop_it(ecdsa_doit, testnum);
}
EVP_PKEY_free(ecdsa_key);
}

for (testnum = 0; testnum < EC_NUM; testnum++) {
Expand Down

0 comments on commit 2287dc5

Please sign in to comment.