Skip to content

Commit

Permalink
fix server RNG memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett committed Mar 22, 2024
1 parent 774c064 commit 9668d9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wh_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ int wh_Server_Cleanup(whServerContext* server)

(void)wh_CommServer_Cleanup(server->comm);
(void)wh_Nvm_Cleanup(server->nvm);
(void)wc_FreeRng(server->crypto->rng);
(void)wolfCrypt_Cleanup();

memset(server, 0, sizeof(*server));
Expand Down

0 comments on commit 9668d9b

Please sign in to comment.