Skip to content

Commit

Permalink
HOTFIX: Fixed memory leak in SetTemplate() method.
Browse files Browse the repository at this point in the history
(cherry picked from commit 2303b53)
  • Loading branch information
Fasgort committed Dec 21, 2018
1 parent 1b1afce commit 032ed6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FPS_GT511C3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ uint16_t FPS_GT511C3::SetTemplate(uint8_t tmplt[], uint16_t id, bool duplicateCh
} else
{
Data_Packet dp(tmplt, 498, _serial); // This makes the data packet and sends it immediately
delete rp;
rp = GetResponse();
if (rp->ACK)
{
Expand Down

0 comments on commit 032ed6d

Please sign in to comment.