Skip to content

dnf-repo: fix dnf_repo_get_public_keys double-free#946

Closed
jlebon wants to merge 1 commit intorpm-software-management:dnf-4-masterfrom
jlebon:pr/fix-double-free
Closed

dnf-repo: fix dnf_repo_get_public_keys double-free#946
jlebon wants to merge 1 commit intorpm-software-management:dnf-4-masterfrom
jlebon:pr/fix-double-free

Conversation

@jlebon
Copy link
Copy Markdown
Contributor

@jlebon jlebon commented Apr 24, 2020

We want to transfer ownership of the strings to the caller, so we
shouldn't free the element here.

Regression from #944.

We want to transfer ownership of the strings to the caller, so we
shouldn't free the element here.

Regression from rpm-software-management#944.
@lukash
Copy link
Copy Markdown
Contributor

lukash commented Apr 25, 2020

Oops, I've missed the pointer is being put into an array in one of the cases there. Thanks for the fix!

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Copy Markdown

📌 Commit cecc9ac has been approved by lukash

@rh-atomic-bot
Copy link
Copy Markdown

⌛ Testing commit cecc9ac with merge 103843e...

rh-atomic-bot pushed a commit that referenced this pull request Apr 25, 2020
We want to transfer ownership of the strings to the caller, so we
shouldn't free the element here.

Regression from #944.

Closes: #946
Approved by: lukash
@rh-atomic-bot
Copy link
Copy Markdown

💔 Test failed - status-papr

@dmach
Copy link
Copy Markdown

dmach commented Apr 27, 2020

@rh-atomic-bot retry

@rh-atomic-bot
Copy link
Copy Markdown

⌛ Testing commit cecc9ac with merge 0708c87...

rh-atomic-bot pushed a commit that referenced this pull request Apr 27, 2020
We want to transfer ownership of the strings to the caller, so we
shouldn't free the element here.

Regression from #944.

Closes: #946
Approved by: lukash
@rh-atomic-bot
Copy link
Copy Markdown

💔 Test failed - status-papr

@lukash
Copy link
Copy Markdown
Contributor

lukash commented Apr 27, 2020

@rh-atomic-bot retry

@rh-atomic-bot
Copy link
Copy Markdown

⌛ Testing commit cecc9ac with merge b8d024e...

@rh-atomic-bot
Copy link
Copy Markdown

☀️ Test successful - status-papr
Approved by: lukash
Pushing b8d024e to dnf-4-master...

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.

4 participants