Parent: 5b6536954b53afe1eebb4d54578cb45953456023
Author: Brian Gix <brian.gix@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-05-21 01:16:55
Tree: cc168ed8a283d7d66b83a5dd828514e8a25e1dea
mesh: Fix double-free This fixes a double-free error when destroying the NVM storage of a mesh node. Cleanly handle two distinct scenarios: 1. When the node is being deleted at runtime. This causes release of both dynamic memory and NVM storage. 2. During shutdown, we release dynamic memory only.
Diffstat
| M | mesh/mesh-config-json.c | | | 5 | +- - - - |
| M | mesh/mesh-config.h | | | 2 | +- |
| M | mesh/node.c | | | 20 | +++++++- - - - - - - - - - - - - |
3 files changed, 9 insertions(+), 18 deletions(-)