Skip to content
Snippets Groups Projects
Commit 1bc56eae authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Close a memory leak with EVP_MD_CTX_cleanup

parent 9011d5aa
No related branches found
No related tags found
No related merge requests found
...@@ -1016,6 +1016,10 @@ _slurm_cred_verify_signature(slurm_cred_ctx_t ctx, slurm_cred_t cred) ...@@ -1016,6 +1016,10 @@ _slurm_cred_verify_signature(slurm_cred_ctx_t ctx, slurm_cred_t cred)
} else } else
rc = SLURM_SUCCESS; rc = SLURM_SUCCESS;
#ifdef HAVE_EVP_MD_CTX_CLEANUP
/* Note: Likely memory leak if this function is absent */
EVP_MD_CTX_cleanup(&ectx);
#endif
free_buf(buffer); free_buf(buffer);
return rc; return rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment