Skip to content

Commit

Permalink
pt/addrtrace: Handle nullptr in dofree
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Mar 2, 2023
1 parent 44c6a59 commit c4a25ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pintool/addrtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,8 @@ void dofree(ADDRINT addr) {
PT_DEBUG(1, "dofree 0x" << std::hex << addr);

if (!addr) {
PT_ERROR("dofree called with NULL");
PT_DEBUG(3, "dofree called with NULL");
return;
}

if (allocmap.find(addr) == allocmap.end()) {
Expand Down

0 comments on commit c4a25ba

Please sign in to comment.