Skip to content

Commit

Permalink
Added NULL pointer (#3998)
Browse files Browse the repository at this point in the history
This ports #3995
  • Loading branch information
mwetter committed Sep 14, 2024
1 parent 1e98154 commit c4c54b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Buildings/Resources/C-Sources/cfdSendStopCommand.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ void cfdSendStopCommand(void *thread) {
}
if (cosim != NULL){
free(cosim);
/* If it is not explicitly set to NULL - then the check in cfdcosim()
will fail if a second simulation is performed. */
cosim = NULL;
}

} /* End of cfdSendStopCommand*/

0 comments on commit c4c54b3

Please sign in to comment.