Skip to content

Commit

Permalink
Added NULL pointer
Browse files Browse the repository at this point in the history
This ports #3995
  • Loading branch information
mwetter committed Sep 12, 2024
1 parent 1ab8267 commit 29247b8
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 29247b8

Please sign in to comment.