Skip to content

Conversation

@royfengsss
Copy link
Contributor

Summary

In net/procfs/net_procfs.c the memory buffer of copy is allocated in strdup, which used lib_malloc.
It need to be freeed with lib_free
Otherwise, it will triger the assertion of "Free memory from the wrong heap" under flatmode and user seperated heap enabled case.

Impact

Fix a mismatch of malloc/free.

Testing

Pass the build, test with assertion enabled. no related assertion found anymore.

@xiaoxiang781216
Copy link
Contributor

Don't need this patch after #10066, let's close it

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