precice / calculix-adapter

preCICE-adapter for the CSM code CalculiX
GNU General Public License v3.0
52 stars 20 forks source link

Fixed crash when freeing unused pointers #102

Closed boris-martin closed 2 years ago

boris-martin commented 2 years ago

When one interface doesn't write data, an unitialized pointer gets freed in the end. This PR initalizes it to NULL when necessary. Example to reproduce: https://github.com/precice/tutorials/pull/271.