FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: use OnScopeLeave instead of multiple free() by tniessen · Pull Request #44852 · nodejs/node · GitHub

/ node Public

src: use OnScopeLeave instead of multiple free() - #44852

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:src-crypto-common-onscopeleave-openssl-free
Oct 3, 2022
Merged

src: use OnScopeLeave instead of multiple free()#44852
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:src-crypto-common-onscopeleave-openssl-free

Conversation

tniessen commented Oct 1, 2022

Copy link
Copy Markdown
Member

This is not perfect either but it avoids having to call OPENSSL_free() in more than one branch, thus reducing the risk of memory leaks.

This is not great either but it avoids having to call OPENSSL_free() in
more than one branch, thus reducing the risk of memory leaks.
tniessen added tls Issues and PRs related to the tls subsystem. crypto Issues and PRs related to the crypto subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 1, 2022

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 1, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 1, 2022

cjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The indentation of the ToLocal() on line 1002 looks a little odd, but LGTM

tniessen commented Oct 1, 2022

Copy link
Copy Markdown
Member Author

The indentation of the ToLocal() on line 1002 looks a little odd, but LGTM

@cjihrig Agreed, but the new-ish format-cpp linter requires this change :/

tniessen added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 1, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 1, 2022
tniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2022
RaisinTen added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2022
tniessen removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2022

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

tniessen added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 3, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 3, 2022
nodejs-github-bot merged commit b5e1387 into nodejs:main Oct 3, 2022

Copy link
Copy Markdown
Collaborator

Landed in b5e1387

danielleadams pushed a commit that referenced this pull request Oct 11, 2022
This is not great either but it avoids having to call OPENSSL_free() in
more than one branch, thus reducing the risk of memory leaks.

PR-URL: #44852
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL