Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XrdTpc: Fixup some minor memory bugs #1423

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

bbockelm
Copy link
Contributor

This fixes an incorrect copy (which should have been a reference, resulting in a leak) and a use-after-free found by valgrind. Those are in the multistream code and, I believe, currently rarely used.

It also fixes a potential pointer deref - if libcurl failed to malloc a new handle, then we used the handle before checking for a null pointer. I also consider this fairly unlikely to occur in reality but a worthwhile fix.

This fixes an incorrect copy (which should have been a reference,
resulting in a leak) and a use-after-free found by valgrind.
@abh3 abh3 merged commit 48865e0 into xrootd:master Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants