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

Fix mismatch alloc free #431

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Conversation

ir1ka
Copy link
Contributor

@ir1ka ir1ka commented Nov 10, 2024

No description provided.

The pdu indata alloc by iscsi_malloc with a undetermined size, but free
by iscsi_sfree. The iscsi_sfree can only be used to free memory which
size is equal to iscsi->smalloc_size.

Signed-off-by: IriKa Qiu <[email protected]>
The pdu alloced by iscsi->drv->new_pdu, by free with iscsi_free direct
when fail in iscsi_allocate_pdu.

Signed-off-by: IriKa Qiu <[email protected]>
@ir1ka
Copy link
Contributor Author

ir1ka commented Nov 10, 2024

Refer #430.

@ir1ka ir1ka mentioned this pull request Nov 10, 2024
@sahlberg sahlberg merged commit 7d1c926 into sahlberg:master Nov 11, 2024
2 checks passed
@sahlberg
Copy link
Owner

Merged, thanks!

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.

2 participants