module_adapter:Fix dangling pointer issue in module reset

During module_reset and module_free Calls, pointers are not
getting reset to NULL which causes dangling pointer exceptions.
Initialize pointers to NULL after deallocating the memory.

Signed-off-by: Balakishorepati <balaKishore.pati@amd.com>
(cherry picked from commit 53b3bc6a956ae5957966336f88980438f1f85a88)
1 file changed
tree: f2d3cd45618eb51b3135d8c58deaa317f5f39d94
  1. .github/
  2. doc/
  3. installer/
  4. keys/
  5. overlays/
  6. scripts/
  7. smex/
  8. src/
  9. test/
  10. third_party/
  11. tools/
  12. zephyr/
  13. .gitignore
  14. .gitmodules
  15. .travis.yml
  16. CMakeLists.txt
  17. CODEOWNERS
  18. Kconfig
  19. Kconfig.sof
  20. Kconfig.xtos-build
  21. Kconfig.xtos-dbg
  22. Kconfig.zephyr-log
  23. LICENCE
  24. README.md
README.md

Sound Open Firmware

Status

GitHub Actions Build Status Gitter chat

Documentation

See docs

Running the tests

See unit testing documentation

Deployment

TODO: Add additional notes about how to deploy this on a live system

Contributing

See Contributing to the Project

License

This project is licensed under the BSD Clause 3 - see the LICENCE file for details