Skip to content

Commit

Permalink
fix memory leak in P25NID
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchain committed Jul 3, 2018
1 parent 1b7abde commit ae53215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion P25NID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ m_ldu1(NULL),
m_ldu2(NULL),
m_termlc(NULL),
m_term(NULL),
m_pdu(NULL)
m_pdu(NULL),
m_tsdu(NULL)
{
CBCH bch;

Expand Down Expand Up @@ -96,6 +97,7 @@ CP25NID::~CP25NID()
delete[] m_termlc;
delete[] m_term;
delete[] m_pdu;
delete[] m_tsdu;
}

bool CP25NID::decode(const unsigned char* data)
Expand Down

0 comments on commit ae53215

Please sign in to comment.