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

Safety changes after malloc to CHIPMem conversions #3230

Merged

Conversation

kpschoedel
Copy link
Contributor

Problem

As part of heap memory management, a recent change (#3143) replaced
malloc()-family calls one-for-one with their "CHIPMem.h" equivalents.
Reviewers proposed some related small safety changes.

Summary of Changes

  • added an assert()
  • null out two dead pointers

 #### Problem

As part of heap memory management, a recent change (project-chip#3143) replaced
malloc()-family calls one-for-one with their "CHIPMem.h" equivalents.
Reviewers proposed some related small safety changes.

 #### Summary of Changes

- added an assert()
- null out two dead pointers
@andy31415 andy31415 merged commit 5b0142e into project-chip:master Oct 14, 2020
@kpschoedel kpschoedel deleted the x2899-mem-malloc-followup-safety branch October 14, 2020 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants