Skip to content

Conversation

@expliyh
Copy link
Contributor

@expliyh expliyh commented Dec 30, 2025

bug: v/82382

Rootcause: mem not free in some case.

@expliyh expliyh requested a review from hyson710 as a code owner December 30, 2025 05:53
Copy link

@huangyulong3 huangyulong3 left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@gzh-terry gzh-terry left a comment

Choose a reason for hiding this comment

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

It's fine to me.

But we can actually do malloc right before strlcpy. So we can reduce the number of free(line).

Copy link
Contributor

@gzh-terry gzh-terry left a comment

Choose a reason for hiding this comment

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

And one more thing.
We can try to calculate the line_len first.
And malloc(line_len + 1) rather than malloc(HFP_AT_LEN_MAX + 1);

bug: v/82382

Rootcause: mem not free in some case.
Signed-off-by: YuhengLi <[email protected]>
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.

3 participants