Skip to content

Commit

Permalink
Fixed memory leak found by cppcheck
Browse files Browse the repository at this point in the history
azonenberg committed Jul 21, 2017
1 parent b884453 commit b504a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/greenpak4/Greenpak4Device.cpp
Original file line number Diff line number Diff line change
@@ -999,6 +999,7 @@ bool Greenpak4Device::ReadFromFile(string fname)
if(!fp)
{
LogError("Couldn't open %s for reading\n", fname.c_str());
delete[] bitstream;
return false;
}

0 comments on commit b504a02

Please sign in to comment.