Fix memory leaks in CA related functions.#4700
Fix memory leaks in CA related functions.#4700PavelKopyl wants to merge 1 commit intoopenssl:masterfrom
Conversation
|
@PavelKopyl do you think you could submit a CLA please? I think we are starting to stray beyond the "trivial" exception. |
|
Ok, I'll start an approval to sign the CLA, but it may take some time. |
|
If this is a corporate contribution then you will need to send both a CCLA from your company and an ICLA for yourself. |
10faed9 to
cbbe030
Compare
mattcaswell
left a comment
There was a problem hiding this comment.
Looks good. Which branches does this apply to aside from master? 1.1.0? 1.0.2?
apps/ca.c
Outdated
There was a problem hiding this comment.
Shouldn't we also free x here too?
There was a problem hiding this comment.
Yes, you're right.
There was a problem hiding this comment.
Some changes are required to apply it to 1.1.0 and 1.0.2. I'll make appropriate pull requests.
cbbe030 to
29b1795
Compare
| item = int_cleanup_item(cb); | ||
| if (item) | ||
| sk_ENGINE_CLEANUP_ITEM_push(cleanup_stack, item); | ||
| if (item) { |
There was a problem hiding this comment.
Should that be tested against NULL? Not worth delaying this PR if it will take awhile to get around to fixing that nit.
|
Looks like this is in need of a rebase. |
|
The conflict in As far as I can see, we can simply drop the |
richsalz
left a comment
There was a problem hiding this comment.
You'll keep the first ca.c change, right?
And can you fix my "test against NULL" nit?
Approved either way.
Reviewed-by: Rich Salz <[email protected]> Reviewed-by: Richard Levitte <[email protected]> (Merged from #4700)
|
Merged into master / 1.1.1, with the test against NULL nit fixed. aebd0e5 Fix memory leaks in CA related functions. |
|
This doesn't cherry-pick cleanly to 1.1.0, although that's only because of a small nit, 1.1.0 has an assertion that isn't in 1.1.1: Porting this to 1.0.2 is more extensive. |
|
@levitte, this pr was merged to master in aebd0e5. Can it be closed now, or do you still intend to do some backporting? |
|
The backports are merged, closing this. |
Fix memory leaks in CA related functions.
CLA: trivial
Checklist