X509_PUBKEY_set(): Fix memory leak#11038
Conversation
f67f950 to
2cb71e2
Compare
|
Ping! This should be low hanging fruit |
beldmit
left a comment
There was a problem hiding this comment.
I hope the comment provides enough context.
|
This pull request is ready to merge |
With the provided method of creating the new X509_PUBKEY, an extra EVP_PKEY is created and needs to be properly cleaned away. (note: we could choose to keep it just as well, but there are consequences, explained in a comment in the code) Reviewed-by: Dmitry Belyavskiy <[email protected]> (Merged from openssl#11038)
2cb71e2 to
a076951
Compare
|
Merged. a076951 X509_PUBKEY_set(): Fix memory leak |
|
Thanks @DDvO, for showing by example how to get these merges properly visible on github |
Oh, why do you think I've done that? At least I did not do consciously. |
Normally when we push a github PR, we have to rebase it first. Therefore github does not recognise that we've actually pushed it, and always thinks that we've closed the PR unmerged. By force-pushing the PR to github first (as you did in #10667) and then pushing to master, github is recognising that the PR has been merged, closes it automatically and shows the "Merged" icon. |
|
More so, |
|
Thanks @mattcaswell, @levitte, and @beldmit for your affirming and well explaining further comments that you gave 4 days ago, which I did not notice until now.
@beldmit did you mean by 'incorporate' to reflect the workflow enhancements in |
I'm just interested in a list of github commands. And have to close the PR manually. Your workflow, as I understand, is better. |
|
@beldmit, your workflow would get adapted to something like the following |
|
BTW, I recently again came across the topic of marking successful merge of a PR by the purple "Merged" GitHub symbol. I've tried out on #12615 an enhancement of the procedure mentioned above, using the latest version of which already added to the respective commit message(s): Then I force-pushed to the PR (which some committers consider unclean because strictly speaking this overwrites the approved version, but just by a likely rebase, possibly squashing, and meta info addition): Then (in a different shell where I do the merge commands) I entered as usual: which did not further modify the commits because its internal |
With the provided method of creating the new X509_PUBKEY, an extra
EVP_PKEY is created and needs to be properly cleaned away.
(note: we could choose to keep it just as well, but there are
consequences, explained in a comment in the code)