Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Memory allocated but not released.
  • Loading branch information
CapitaineSheridan authored and trzy committed Dec 29, 2022
1 parent 69a458e commit 7e025e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Src/Model3/Model3.cpp
Expand Up @@ -3224,6 +3224,10 @@ CModel3::CModel3(Util::Config::Node &config)
DSB = NULL;
DriveBoard = NULL;

#ifdef NET_BOARD
NetBoard = NULL;
#endif

securityPtr = 0;

startedThreads = false;
Expand Down Expand Up @@ -3303,6 +3307,14 @@ CModel3::~CModel3(void)
DriveBoard = NULL;
}

#ifdef NET_BOARD
if (NetBoard != NULL)
{
delete NetBoard;
NetBoard = NULL;
}
#endif

Inputs = NULL;
Outputs = NULL;
ram = NULL;
Expand Down

0 comments on commit 7e025e6

Please sign in to comment.